pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/check



Module Name:    pkgsrc
Committed By:   rillig
Date:           Thu Mar 12 19:09:41 UTC 2020

Modified Files:
        pkgsrc/mk/check: check-portability.sh

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/mk/check/check-portability.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/check/check-portability.sh
diff -u pkgsrc/mk/check/check-portability.sh:1.16 pkgsrc/mk/check/check-portability.sh:1.17
--- pkgsrc/mk/check/check-portability.sh:1.16   Thu Mar 12 18:54:59 2020
+++ pkgsrc/mk/check/check-portability.sh        Thu Mar 12 19:09:41 2020
@@ -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 ;;



Home | Main Index | Thread Index | Old Index