From 442e62c63a55a3dcb87b62da818c60e4149f399b Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Mon, 27 Apr 2015 14:31:58 +0000 Subject: Install licensecheck.pl with morphlib Change-Id: If1b156a309236956d7a35136db35a8fd0ab3ad71 --- scripts/check-copyright-year | 2 +- scripts/check-silliness | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'scripts') diff --git a/scripts/check-copyright-year b/scripts/check-copyright-year index 5a458954..58d9e66b 100755 --- a/scripts/check-copyright-year +++ b/scripts/check-copyright-year @@ -28,7 +28,7 @@ class CheckCopyrightYear(cliapp.Application): pat = re.compile(r'^[ #/*]*Copyright\s+(\(C\)\s*)' r'(?P[0-9, -]+)') - ignore = ['COPYING'] + ignore = ['COPYING', 'morphlib/licensecheck.pl'] def add_settings(self): self.settings.boolean(['verbose', 'v'], 'be more verbose') 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 -- cgit v1.2.1