Changeset - 1949ece749ce
[Not reviewed]
default
0 7 0
Mads Kiilerich - 10 years ago 2015-08-11 12:39:07
madski@unity3d.com
cleanup: fix whitespace in CONTRIBUTORS (and other forgotten files) too
2 files changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/dbmigrate/migrate/versioning/templates/repository/default/migrate.cfg
Show inline comments
 
@@ -19,7 +19,7 @@ version_table={{ locals().pop('version_t
 
# This must be a list; example: ['postgres','sqlite']
 
required_dbs={{ locals().pop('required_dbs') }}
 

	
 
# When creating new change scripts, Migrate will stamp the new script with
 
# a version number. By default this is latest_version + 1. You can set this
 
# to 'true' to tell Migrate to use the UTC timestamp instead.
 
use_timestamp_numbering='false'
 
\ No newline at end of file
 
use_timestamp_numbering='false'
whitespacecleanup.sh
Show inline comments
 
#!/bin/bash -x
 

	
 
# Enforce some consistency in whitespace - just to avoid spurious whitespaces changes
 

	
 
files=`hg loc '*.py' '*.html' '*.css' '*.rst' '*.txt' '*.js' | egrep -v '/lockfiles.py|LICENSE-MERGELY.html|/codemirror/|/fontello/|(graph|mergely|native.history|select2/select2|yui.flot|yui.2.9)\.js$'`
 
files=`hg loc '*.py' '*.html' '*.css' '*.rst' '*.txt' '*.js' '*.ini' '*.cfg' CONTRIBUTORS LICENSE.md| egrep -v '/lockfiles.py|LICENSE-MERGELY.html|/codemirror/|/fontello/|(graph|mergely|native.history|select2/select2|yui.flot|yui.2.9)\.js$'`
 

	
 
sed -i -e "s,`printf '\t'`,    ,g" $files
 
sed -i -e "s,  *$,,g" $files
 
# ensure one trailing newline - remove empty last line and make last line include trailing newline:
 
sed -i -e '$,${/^$/d}' -e '$a\' $files
 

	
 
sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'`
0 comments (0 inline, 0 general)