Exclude archives from the files to be processed for EOL whitespace removal.
git-svn-id: http://yate.null.ro/svn/yate/trunk@5766 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3f38f132ba
commit
6b6244a89c
|
@ -20,7 +20,7 @@
|
|||
|
||||
# This script removes whitespaces at end of lines of all files in all subdirectories
|
||||
|
||||
grep -l -r '[ \t]\+$' * | grep -v '\.svn\|\.html\|\.yhlp\|\.png\|\.gif\|\.jpg\|\.jpeg\|\.ico\|\.wav\|\.au\|\.mp3\|\.ogg\|\.gsm\|\.slin\|\.alaw\|\.mulaw\|Doxyfile\|Makefile\|README' | while read fn; do
|
||||
grep -l -r '[ \t]\+$' * | grep -v '\.svn\|\.html\|\.yhlp\|\.gz\|\.zip\|\.png\|\.gif\|\.jpg\|\.jpeg\|\.ico\|\.wav\|\.au\|\.mp3\|\.ogg\|\.gsm\|\.slin\|\.alaw\|\.mulaw\|Doxyfile\|Makefile\|README' | while read fn; do
|
||||
echo -n "Processing: $fn ..."
|
||||
sed 's/[ \t]\+$//' < "$fn" > "$fn.tmp"
|
||||
if cmp -s "$fn" "$fn.tmp"; then
|
||||
|
|
Loading…
Reference in New Issue