diff options
author | rillig <rillig@pkgsrc.org> | 2020-03-12 19:09:41 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2020-03-12 19:09:41 +0000 |
commit | f5d7bf66ef762112cbd650107fdc3bbadc16f358 (patch) | |
tree | be987e26bfeea8524bafdc4aef0ea1917c81df1f /mk/check | |
parent | ad49c6cdf66bcb2ce31707b5e3a0b0aa735a00e5 (diff) | |
download | pkgsrc-f5d7bf66ef762112cbd650107fdc3bbadc16f358.tar.gz |
mk/check/check-portability: check plain Makefiles as well
Like Makefile.in, these files contain shell commands but don't start with
a #! line.
Suggested by gdt via private mail.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-portability.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/check/check-portability.sh b/mk/check/check-portability.sh index 9cabfc1a05d..fe969688a5e 100644 --- a/mk/check/check-portability.sh +++ b/mk/check/check-portability.sh @@ -1,4 +1,4 @@ -# $NetBSD: check-portability.sh,v 1.16 2020/03/12 18:54:59 rillig Exp $ +# $NetBSD: check-portability.sh,v 1.17 2020/03/12 19:09:41 rillig Exp $ # # This program checks all files in the current directory and any # subdirectories for portability issues that are likely to result in @@ -53,7 +53,7 @@ find ./* -type f -print 2>/dev/null \ # A few file extensions cannot be skipped since the Makefiles # will be generated from these, in the configure stage, which # is run later. - (in) skip_shebang_test=yes;; + (in|mk|Makefile|makefile|GNUmakefile) skip_shebang_test=yes;; # echo */*/PLIST | xargs cat | sed s,'.*\.',, | sort | uniq -c | sort -nr | sed 40q (png|html|svg|py|h|mo|php|js|xml|rb|go|txt|3|hpp) continue ;; |