diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-08 11:01:37 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-02-08 11:01:37 -0200 |
commit | efbd93b2cd442fbbc37f048635a6af2767cac8dd (patch) | |
tree | 2aa7c6c70920c0f4a67a58a202f34f403df3a671 /v4l/scripts | |
parent | afcfb73bdbe21ae90b41a3adc127b65854b294df (diff) | |
parent | cb5a30b9297380a55ffff6ddf3fa4b6b784f0c16 (diff) | |
download | mediapointer-dvb-s2-efbd93b2cd442fbbc37f048635a6af2767cac8dd.tar.gz mediapointer-dvb-s2-efbd93b2cd442fbbc37f048635a6af2767cac8dd.tar.bz2 |
merged patch at master tree.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
------------
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/strip-trailing-whitespaces.sh | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh index ea3e4defa..1a23e436d 100755 --- a/v4l/scripts/strip-trailing-whitespaces.sh +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -10,21 +10,25 @@ for file in `find linux -type d | grep -v CVS | grep -v .cvsignore` ; do done for file in `find linux -type f | grep -v CVS | grep -v .cvsignore` ; do tmpfile="$WORK/${file}.$$" - perl -ne 's/[ \t]+$//; + perl -ne 's/[ \t]+$//; s/^\ \ \ \ \ \ \ \ /\t/; s/^\ \ \ \ \ \ \ \t/\t/; s/^\ \ \ \ \ \ \t/\t/; s/^\ \ \ \ \ \t/\t/; s/^\ \ \ \t/\t/; s/^\ \ \t/\t/; - s/^\ \t/\t/; - s/\t\ \ \ \ \ \ \ \ /\t\t/g; - s/\t\ \ \ \ \ \ \ \t/\t\t/g; - s/\t\ \ \ \ \ \ \t/\t\t/g; - s/\t\ \ \ \ \ \t/\t\t/g; - s/\t\ \ \ \t/\t\t/g; - s/\t\ \ \t/\t\t/g; - s/\t\ \t/\t\t/g; + s/^\ \t/\t/; + $m=1; + while ($m>0) { + $m=0; + $m= s/\t\ \ \ \ \ \ \ \ /\t\t/g; + $m=$m+s/\t\ \ \ \ \ \ \ \t/\t\t/g; + $m=$m+s/\t\ \ \ \ \ \ \t/\t\t/g; + $m=$m+s/\t\ \ \ \ \ \t/\t\t/g; + $m=$m+s/\t\ \ \ \t/\t\t/g; + $m=$m+s/\t\ \ \t/\t\t/g; + $m=$m+s/\t\ \t/\t\t/g; + } print' < "${file}" > "${tmpfile}" diff -u "${file}" "${tmpfile}" | sed \ -e "s|^--- ${file}|--- ${file}.orig|" \ |