summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-27 14:31:58 +0000
committerBaserock Gerrit <gerrit@baserock.org>2015-04-29 16:21:22 +0000
commit442e62c63a55a3dcb87b62da818c60e4149f399b (patch)
treee8b6546aef03a3c37edbc8e0b8270793e3ea3908 /scripts
parentdd755f80c09b45fc39a3af65eb239c92f9da3669 (diff)
downloadmorph-442e62c63a55a3dcb87b62da818c60e4149f399b.tar.gz
Install licensecheck.pl with morphlib
Change-Id: If1b156a309236956d7a35136db35a8fd0ab3ad71
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-copyright-year2
-rwxr-xr-xscripts/check-silliness18
2 files changed, 13 insertions, 7 deletions
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<years>[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