Show More
@@ -1,25 +1,26 b'' | |||||
1 | #!/bin/bash -x |
|
1 | #!/bin/bash -x | |
2 |
|
2 | |||
3 | # Enforce some consistency in whitespace - just to avoid spurious whitespaces changes |
|
3 | # Enforce some consistency in whitespace - just to avoid spurious whitespaces changes | |
4 |
|
4 | |||
5 | 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|jquery.dataTables)\.js$'` |
|
5 | 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|jquery.dataTables)\.js$'` | |
6 |
|
6 | |||
7 | sed -i -e "s,`printf '\t'`, ,g" $files |
|
7 | sed -i -e "s,`printf '\t'`, ,g" $files | |
8 | sed -i -e "s, *$,,g" $files |
|
8 | sed -i -e "s, *$,,g" $files | |
9 | sed -i -e 's,\([^ ]\)\\$,\1 \\,g' -e 's,\(["'"'"']["'"'"']["'"'"']\) \\$,\1\\,g' $files |
|
9 | sed -i -e 's,\([^ ]\)\\$,\1 \\,g' -e 's,\(["'"'"']["'"'"']["'"'"']\) \\$,\1\\,g' $files | |
10 | # ensure one trailing newline - remove empty last line and make last line include trailing newline: |
|
10 | # ensure one trailing newline - remove empty last line and make last line include trailing newline: | |
11 | sed -i -e '$,${/^$/d}' -e '$a\' $files |
|
11 | sed -i -e '$,${/^$/d}' -e '$a\' $files | |
12 |
|
12 | |||
13 | sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'` |
|
13 | sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'` | |
14 | sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'` |
|
14 | sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'` | |
15 |
|
15 | |||
16 | sed -i -e 's/^\( [^: ]*\) *: *\([^/]\)/\1: \2/g' kallithea/public/css/{style,contextbar}.css |
|
16 | sed -i -e 's/^\( [^: ]*\) *: *\([^/]\)/\1: \2/g' kallithea/public/css/{style,contextbar}.css | |
17 | sed -i -e '1s|, |,|g' kallithea/public/css/{style,contextbar}.css |
|
17 | sed -i -e '1s|, |,|g' kallithea/public/css/{style,contextbar}.css | |
18 | sed -i -e 's/^\([^ ,/]\+ [^,]*[^ ,]\) *, *\(.\)/\1,\n\2/g' kallithea/public/css/{style,contextbar}.css |
|
18 | sed -i -e 's/^\([^ ,/]\+ [^,]*[^ ,]\) *, *\(.\)/\1,\n\2/g' kallithea/public/css/{style,contextbar}.css | |
19 | sed -i -e 's/^\([^ ,/].*\) */\1 /g' kallithea/public/css/{style,contextbar}.css |
|
19 | sed -i -e 's/^\([^ ,/].*\) */\1 /g' kallithea/public/css/{style,contextbar}.css | |
20 | sed -i -e 's,^--$,-- ,g' kallithea/templates/email_templates/main.txt |
|
20 | sed -i -e 's,^--$,-- ,g' kallithea/templates/email_templates/main.txt | |
|
21 | sed -i -e 's,[ ][ ]*$,,g' -e 's, , ,g' kallithea/public/js/graph.js | |||
21 |
|
22 | |||
22 | hg mani | xargs chmod -x |
|
23 | hg mani | xargs chmod -x | |
23 | hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x |
|
24 | hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x | |
24 |
|
25 | |||
25 | hg diff |
|
26 | hg diff |
General Comments 0
You need to be logged in to leave comments.
Login now