summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:01:21 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-02-27 17:01:21 +0000
commitc5fc68fa232e88ec3e5e40aaec619280554886a9 (patch)
tree6e9a40ccece90b1e0151dd4afbee4c33a81044cf /check
parentff0d9d9c8fc4cfae879c2a79adeb239f77d9f451 (diff)
downloadmorph-c5fc68fa232e88ec3e5e40aaec619280554886a9.tar.gz
Expand TAB characters and make check check for them
Diffstat (limited to 'check')
-rwxr-xr-xcheck13
1 files changed, 13 insertions, 0 deletions
diff --git a/check b/check
index b214301b..3fa7d1a9 100755
--- a/check
+++ b/check
@@ -26,4 +26,17 @@ if [ -d .git ];
then
echo "Checking copyright statements"
git ls-files | xargs scripts/check-copyright-year
+
+ echo 'Checking source code for TAB characters'
+ git ls-files |
+ grep -v '\.gz$' |
+ while read x
+ do
+ if tr -cd '\t' < "$x" | grep . > /dev/null
+ then
+ echo "ERROR: $x contains TAB characters" 1>&2
+ errors=1
+ fi
+ done
fi
+exit $errors