Mercurial > kallithea
comparison scripts/whitespacecleanup.sh @ 7254:a5a9ded8c673
scripts: fix whitespacecleanup.sh after contextbar.css was removed and style.css is generated
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 23 Apr 2018 00:50:22 +0200 |
parents | 322ce5147fe0 |
children | 2b8f69cb7d8c |
comparison
equal
deleted
inserted
replaced
7253:11f829761032 | 7254:a5a9ded8c673 |
---|---|
12 sed -i -e '$,${/^$/d}' -e '$a\' $files | 12 sed -i -e '$,${/^$/d}' -e '$a\' $files |
13 | 13 |
14 sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'` | 14 sed -i -e 's,\([^ /]\){,\1 {,g' `hg loc '*.css'` |
15 sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'` | 15 sed -i -e 's|^\([^ /].*,\)\([^ ]\)|\1 \2|g' `hg loc '*.css'` |
16 | 16 |
17 sed -i -e 's/^\( [^: ]*\) *: *\([^/]\)/\1: \2/g' kallithea/public/css/{style,contextbar}.css | |
18 sed -i -e '1s|, |,|g' kallithea/public/css/{style,contextbar}.css | |
19 sed -i -e 's/^\([^ ,/]\+ [^,]*[^ ,]\) *, *\(.\)/\1,\n\2/g' kallithea/public/css/{style,contextbar}.css | |
20 sed -i -e 's/^\([^ ,/].*\) */\1 /g' kallithea/public/css/{style,contextbar}.css | |
21 sed -i -e 's,[ ][ ]*$,,g' -e 's, , ,g' kallithea/public/js/graph.js | |
22 | |
23 hg mani | xargs chmod -x | 17 hg mani | xargs chmod -x |
24 hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x | 18 hg loc 'set:!binary()&grep("^#!")&!(**_tmpl.py)&!(**/template**)' | xargs chmod +x |
25 | 19 |
26 hg diff | 20 hg diff |