diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-04-27 14:31:58 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2015-04-29 16:21:22 +0000 |
commit | 442e62c63a55a3dcb87b62da818c60e4149f399b (patch) | |
tree | e8b6546aef03a3c37edbc8e0b8270793e3ea3908 /scripts/check-silliness | |
parent | dd755f80c09b45fc39a3af65eb239c92f9da3669 (diff) | |
download | morph-442e62c63a55a3dcb87b62da818c60e4149f399b.tar.gz |
Install licensecheck.pl with morphlib
Change-Id: If1b156a309236956d7a35136db35a8fd0ab3ad71
Diffstat (limited to 'scripts/check-silliness')
-rwxr-xr-x | scripts/check-silliness | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/check-silliness b/scripts/check-silliness index 0c761a69..73f8fe56 100755 --- a/scripts/check-silliness +++ b/scripts/check-silliness @@ -19,17 +19,23 @@ errors=0 for x; do - if tr -cd '\t' < "$x" | grep . > /dev/null - then - echo "ERROR: $x contains TAB characters" 1>&2 - grep -n -F "$(printf "\t")" "$x" 1>&2 - errors=1 - fi + case "$x" in + morphlib/licensecheck.pl) ;; + *) + if tr -cd '\t' < "$x" | grep . > /dev/null + then + echo "ERROR: $x contains TAB characters" 1>&2 + grep -n -F "$(printf "\t")" "$x" 1>&2 + errors=1 + fi + ;; + esac case "$x" in # Excluding yarn files since it's not possible to split up the # IMPLEMENTS lines of them *.yarn) ;; + morphlib/licensecheck.pl) ;; *) if awk 'length($0) > 79' "$x" | grep . > /dev/null then |