From 723e8923174092825f6ffe13559fe0abc6f38552 Mon Sep 17 00:00:00 2001 From: Michael Krufky Date: Wed, 12 Oct 2005 04:02:08 +0000 Subject: * ../v4l/scripts/strip-trailing-whitespaces.sh: - Updated script to function in new tree layout. Must be called from top-level. * ../Makefile: - Automatically strip trailing whitespaces before creating Changelog entry. --- v4l/scripts/strip-trailing-whitespaces.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'v4l/scripts') diff --git a/v4l/scripts/strip-trailing-whitespaces.sh b/v4l/scripts/strip-trailing-whitespaces.sh index 6e6c7d8bb..ea4f28752 100644 --- a/v4l/scripts/strip-trailing-whitespaces.sh +++ b/v4l/scripts/strip-trailing-whitespaces.sh @@ -5,7 +5,10 @@ WORK="${TMPDIR-/tmp}/${0##*/}-$$" mkdir "$WORK" || exit 1 trap 'rm -rf "$WORK"' EXIT -for file in *.[ch]; do +for file in `find linux -type d | grep -v CVS | grep -v .cvsignore` ; do + mkdir -p "$WORK/${file}" +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}" diff -u "${file}" "${tmpfile}" | sed \ -- cgit v1.2.3