summaryrefslogtreecommitdiff
path: root/v4l/scripts/strip-trailing-whitespaces.sh
diff options
context:
space:
mode:
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