diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-16 12:13:58 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-10-16 12:13:58 +0000 |
commit | 70f32af39cc49a27e078cfc9b4e2c31c4ba8bd53 (patch) | |
tree | 6bfab0b1cf0335dbcaf968061eff63244559e6cb /v4l/scripts | |
parent | b01d5877476cea7641b2a4b749ed0d47035d72b3 (diff) | |
download | mediapointer-dvb-s2-70f32af39cc49a27e078cfc9b4e2c31c4ba8bd53.tar.gz mediapointer-dvb-s2-70f32af39cc49a27e078cfc9b4e2c31c4ba8bd53.tar.bz2 |
- Whitespace Cleanups.
- Whitespace script improved.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/scripts')
-rw-r--r-- | v4l/scripts/strip-trailing-whitespaces.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh index ea4f28752..ea3e4defa 100644 --- a/v4l/scripts/strip-trailing-whitespaces.sh +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -10,7 +10,22 @@ 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]+$//; print' < "${file}" > "${tmpfile}" + 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; + print' < "${file}" > "${tmpfile}" diff -u "${file}" "${tmpfile}" | sed \ -e "s|^--- ${file}|--- ${file}.orig|" \ -e "s|^+++ ${tmpfile}|+++ ${file}|" |