summaryrefslogtreecommitdiff
path: root/Mk/Scripts/qa.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/Scripts/qa.sh')
-rw-r--r--Mk/Scripts/qa.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/Scripts/qa.sh b/Mk/Scripts/qa.sh
index 3330bdb7db51..004c56fec5cc 100644
--- a/Mk/Scripts/qa.sh
+++ b/Mk/Scripts/qa.sh
@@ -45,6 +45,11 @@ shebangonefile() {
case "${interp}" in
"") ;;
${LINUXBASE}/*) ;;
+ ${LOCALBASE}/bin/perl5.* | ${PREFIX}/bin/perl5.*)
+ err "'${interp}' is an invalid shebang for '${f#${STAGEDIR}${PREFIX}/}' you must use ${LOCALBASE}/bin/perl."
+ err "Either pass \${PERL} to the build or use USES=shebangfix"
+ rc=1
+ ;;
${LOCALBASE}/*) ;;
${PREFIX}/*) ;;
/bin/csh) ;;