svn commit: r388526 - head/Mk/Scripts
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Jun 4 11:37:14 UTC 2015
Author: amdmi3
Date: Thu Jun 4 11:37:13 2015
New Revision: 388526
URL: https://svnweb.freebsd.org/changeset/ports/388526
Log:
- Add blacklist of files which are not intended to be executed to shebang test
- Sort shebang list
Differential Revision: D2670
Submitted by: amdmi3
Approved by: portmgr (bapt)
Modified:
head/Mk/Scripts/qa.sh
Modified: head/Mk/Scripts/qa.sh
==============================================================================
--- head/Mk/Scripts/qa.sh Thu Jun 4 11:29:47 2015 (r388525)
+++ head/Mk/Scripts/qa.sh Thu Jun 4 11:37:13 2015 (r388526)
@@ -23,19 +23,27 @@ shebangonefile() {
f="$@"
rc=0
+
+ # blacklist of files which are not intended to be runnable
+ case "${f##*/}" in
+ *.pm|*.pod|*.txt)
+ return 0
+ ;;
+ esac
+
interp=$(sed -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p;2q' "$f")
case "$interp" in
"") ;;
- /usr/bin/env) ;;
${LINUXBASE}/*) ;;
${LOCALBASE}/*) ;;
${PREFIX}/*) ;;
- /usr/bin/awk) ;;
- /usr/bin/sed) ;;
- /usr/bin/nawk) ;;
/bin/csh) ;;
/bin/sh) ;;
/bin/tcsh) ;;
+ /usr/bin/awk) ;;
+ /usr/bin/env) ;;
+ /usr/bin/nawk) ;;
+ /usr/bin/sed) ;;
*)
err "'${interp}' is an invalid shebang you need USES=shebangfix for '${f#${STAGEDIR}${PREFIX}/}'"
rc=1
More information about the svn-ports-head
mailing list