diff options
author | Sjoerd Simons <sjoerd@luon.net> | 2009-03-17 19:41:23 +0000 |
---|---|---|
committer | Sjoerd Simons <sjoerd@luon.net> | 2009-03-17 19:41:23 +0000 |
commit | 952f5bd31390e6d0e291e95e7035628e5e6f8ee9 (patch) | |
tree | 9543776a4c0715b9d9990ed2103a9c0165138604 /tools/check-whitespace.sh | |
parent | 467cc8de580acb2fd89a7e0f827c75408aadf526 (diff) |
Add basic build infrastructure
Diffstat (limited to 'tools/check-whitespace.sh')
-rw-r--r-- | tools/check-whitespace.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/check-whitespace.sh b/tools/check-whitespace.sh new file mode 100644 index 0000000..5348331 --- /dev/null +++ b/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 |