summaryrefslogtreecommitdiff
path: root/tools/check-whitespace.sh
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-02-26 13:31:02 +0000
committerXavier Claessens <xclaesse@src.gnome.org>2008-02-26 13:31:02 +0000
commitc3751daec7cca3e44abfed1db475cf0fc4703d66 (patch)
tree4ba009a19d6f3254acb8d91be788d49a7e259fc2 /tools/check-whitespace.sh
parent035e672692a3c63ccf7b927b0b7b74438c1f0e24 (diff)
downloadtelepathy-account-widgets-c3751daec7cca3e44abfed1db475cf0fc4703d66.tar.gz
Import tools from telepathy-glib 0.7.3 and build a static libemp-extensions.la.
Link that library into libempathy (it's not actually used for anything at this point). Extensions currently built: ChannelHandler and StreamEngine. The namespacing convention used is emp_*, Emp*, EMP_* so it won't be included in the library ABI. svn path=/trunk/; revision=663
Diffstat (limited to 'tools/check-whitespace.sh')
-rw-r--r--tools/check-whitespace.sh17
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