diff options
Diffstat (limited to 'v4l/scripts/strip-trailing-whitespaces.sh')
-rw-r--r-- | v4l/scripts/strip-trailing-whitespaces.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 \ |