pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check mk/check/check-portability: check plain Makef...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e9fe1e1f570
branches:  trunk
changeset: 412860:5e9fe1e1f570
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Mar 12 19:09:41 2020 +0000

description:
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:

 mk/check/check-portability.sh |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4ae836fec26e -r 5e9fe1e1f570 mk/check/check-portability.sh
--- a/mk/check/check-portability.sh     Thu Mar 12 18:54:59 2020 +0000
+++ b/mk/check/check-portability.sh     Thu Mar 12 19:09:41 2020 +0000
@@ -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 @@
                # 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 ;;



Home | Main Index | Thread Index | Old Index