diff options
Diffstat (limited to 'gnome-2-26/tools/check-whitespace.sh')
-rw-r--r-- | gnome-2-26/tools/check-whitespace.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnome-2-26/tools/check-whitespace.sh b/gnome-2-26/tools/check-whitespace.sh new file mode 100644 index 000000000..534833126 --- /dev/null +++ b/gnome-2-26/tools/check-whitespace.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +fail=0 + +if grep -n ' $' "$@" +then + echo "^^^ The above files contain unwanted trailing spaces" + fail=1 +fi + +if grep -n ' ' "$@" +then + echo "^^^ The above files contain tabs" + fail=1 +fi + +exit $fail |