diff options
author | Sjoerd Simons <sjoerd@luon.net> | 2008-06-03 13:51:54 +0000 |
---|---|---|
committer | Sjoerd Simons <sjoerd@luon.net> | 2008-06-03 13:51:54 +0000 |
commit | e9f08f6a1591a2e35a17a430f5aa5cae7f62f816 (patch) | |
tree | 2f5f5a49a16f94464cd614b4be73f20c8db26f47 /tools/check-whitespace.sh | |
parent | 0399b890f6e105720e342badbf14ccf9fb9eee4e (diff) | |
download | telepathy-salut-e9f08f6a1591a2e35a17a430f5aa5cae7f62f816.tar.gz |
Add coding style checking tools
20080603135154-93b9a-b631438708091d087e3ba0eb58f04399819d1aba.gz
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 00000000..53483312 --- /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 |