diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-27 17:01:21 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-02-27 17:01:21 +0000 |
commit | c5fc68fa232e88ec3e5e40aaec619280554886a9 (patch) | |
tree | 6e9a40ccece90b1e0151dd4afbee4c33a81044cf /check | |
parent | ff0d9d9c8fc4cfae879c2a79adeb239f77d9f451 (diff) | |
download | morph-c5fc68fa232e88ec3e5e40aaec619280554886a9.tar.gz |
Expand TAB characters and make check check for them
Diffstat (limited to 'check')
-rwxr-xr-x | check | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |