summaryrefslogtreecommitdiff
path: root/v4l/scripts/strip-trailing-whitespaces.sh
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-22 11:47:13 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-22 11:47:13 -0300
commit78d2d7a1fea8c058e3ffa9dae7b6f96c3491a7ac (patch)
tree0a5cca56c3fc8d27809959dd9a69ec44a49e421d /v4l/scripts/strip-trailing-whitespaces.sh
parent443a49ca134a2691307741a3f7e4744f52d1eb49 (diff)
downloadmediapointer-dvb-s2-78d2d7a1fea8c058e3ffa9dae7b6f96c3491a7ac.tar.gz
mediapointer-dvb-s2-78d2d7a1fea8c058e3ffa9dae7b6f96c3491a7ac.tar.bz2
Adjust filenames in the strip whitespace script output
From: Trent Piepho <xyzzy@speakeasy.org> Before: --- Makefile +++ - 2006-06-20 22:16:36.320564000 -0700 Now: --- Makefile +++ Makefile patch handles both correctly, but diffstat will use the "+++" filename rather than the "---" filename, making diffstat output rather useless. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/scripts/strip-trailing-whitespaces.sh')
-rwxr-xr-xv4l/scripts/strip-trailing-whitespaces.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh
index 5bd7784e4..a546a0b9f 100755
--- a/v4l/scripts/strip-trailing-whitespaces.sh
+++ b/v4l/scripts/strip-trailing-whitespaces.sh
@@ -23,5 +23,6 @@ for file in `eval $files`; do
s<^ {8}> <\t>;
s<^ {1,7}\t> <\t>;
while( s<\t {8}> <\t\t>g || s<\t {1,7}\t> <\t\t>g ) {};
- print' < "${file}" | diff -u "${file}" -
+ print' < "${file}" | \
+ diff -u --label="$file" "$file" --label="$file" -
done