Mercurial > kallithea
comparison scripts/whitespacecleanup.sh @ 5937:4e78a8ed3f07
datatables: introduce jQuery DataTables to replace YAHOO.widget.DataTable
author | Daniel Hobley <danielh@unity3d.com> |
---|---|
date | Thu, 21 May 2015 11:46:57 +0200 |
parents | edb24bc0f71a |
children | 42d1e1ab41a8 |
comparison
equal
deleted
inserted
replaced
5936:7a4dec17e837 | 5937:4e78a8ed3f07 |
---|---|
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)\.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: |