summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-02-11 07:53:24 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-02-11 07:53:24 -0200
commit4609ed0c664581008e1bc56a066abb9a8b835457 (patch)
treed1d0fde3b568049a23eeaa946692af0e9f190a22 /v4l
parent003bc60096fc22387e07ce8b916cba1e3dbdb752 (diff)
parent6c16e60ebc542dfe803c0070aaf3e356185b521a (diff)
downloadmediapointer-dvb-s2-4609ed0c664581008e1bc56a066abb9a8b835457.tar.gz
mediapointer-dvb-s2-4609ed0c664581008e1bc56a066abb9a8b835457.tar.bz2
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Solving conflicts at the tree Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rwxr-xr-xv4l/scripts/strip-trailing-whitespaces.sh22
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|" \