diff options
| author | Michael Krufky <devnull@localhost> | 2005-10-12 04:02:08 +0000 |
|---|---|---|
| committer | Michael Krufky <devnull@localhost> | 2005-10-12 04:02:08 +0000 |
| commit | 723e8923174092825f6ffe13559fe0abc6f38552 (patch) | |
| tree | 963ebbbe1a0cd70aa4785e72659f68b0cb94ee86 /v4l/scripts | |
| parent | 4bb3fbe1741d0b0e1f04eab0558c60435f847d98 (diff) | |
| download | mediapointer-dvb-s2-723e8923174092825f6ffe13559fe0abc6f38552.tar.gz mediapointer-dvb-s2-723e8923174092825f6ffe13559fe0abc6f38552.tar.bz2 | |
* ../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.
Diffstat (limited to 'v4l/scripts')
| -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 \ |
