diff options
author | Gerd Knorr <devnull@localhost> | 2004-09-16 09:06:42 +0000 |
---|---|---|
committer | Gerd Knorr <devnull@localhost> | 2004-09-16 09:06:42 +0000 |
commit | 0dd9dc19b6f84782d0b7e3b41c50df853166ae49 (patch) | |
tree | 20568a8c1da0665146b46cb562df8f4420512b3d /v4l/scripts | |
parent | 46ccb2c87166fe219f2b4b9ca9e3266bce7a630e (diff) | |
download | mediapointer-dvb-s2-0dd9dc19b6f84782d0b7e3b41c50df853166ae49.tar.gz mediapointer-dvb-s2-0dd9dc19b6f84782d0b7e3b41c50df853166ae49.tar.bz2 |
- add script to kill trailing whitespaces in the sources.
Diffstat (limited to 'v4l/scripts')
-rw-r--r-- | v4l/scripts/strip-trailing-whitespaces.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh new file mode 100644 index 000000000..592320e6a --- /dev/null +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -0,0 +1,8 @@ +#!/bin/sh +for file in *.[ch]; do + echo "### file" + tmpfile="${file}.$$" + perl -ne 's/[ \t]+$//; print' < "${file}" > "$tmpfile" + diff -u "$file" "$tmpfile" + rm -f "$tmpfile" +done |