From 0dd9dc19b6f84782d0b7e3b41c50df853166ae49 Mon Sep 17 00:00:00 2001 From: Gerd Knorr Date: Thu, 16 Sep 2004 09:06:42 +0000 Subject: - add script to kill trailing whitespaces in the sources. --- v4l/scripts/strip-trailing-whitespaces.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 v4l/scripts/strip-trailing-whitespaces.sh (limited to 'v4l/scripts') diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh new file mode 100644 index 000000000..592320e6a --- /dev/null +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -0,0 +1,8 @@ +#!/bin/sh +for file in *.[ch]; do + echo "### file" + tmpfile="${file}.$$" + perl -ne 's/[ \t]+$//; print' < "${file}" > "$tmpfile" + diff -u "$file" "$tmpfile" + rm -f "$tmpfile" +done -- cgit v1.2.3