diff options
author | roy <roy@pkgsrc.org> | 2011-04-19 15:31:45 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2011-04-19 15:31:45 +0000 |
commit | 289a8e9294be345e08811a4026384781c9babeb4 (patch) | |
tree | ec5bed63316e1c82759d1c109a9c1c963bb63779 /mk | |
parent | 289b9ed60e2bce6c20f814077d21d52c19e33730 (diff) | |
download | pkgsrc-289a8e9294be345e08811a4026384781c9babeb4.tar.gz |
Just warn about non executable files using env.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/check/check-interpreter.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk index f2883e1b431..b026e6a5ea9 100644 --- a/mk/check/check-interpreter.mk +++ b/mk/check/check-interpreter.mk @@ -1,4 +1,4 @@ -# $NetBSD: check-interpreter.mk,v 1.26 2011/04/19 14:28:28 roy Exp $ +# $NetBSD: check-interpreter.mk,v 1.27 2011/04/19 15:31:45 roy Exp $ # # This file checks that after installation, all files of the package # that start with a "#!" line will find their interpreter. Files that @@ -67,7 +67,12 @@ _check-interpreter: error-check .PHONY }; \ case "$$interp" in \ "") continue;; \ - /bin/env|/usr/bin/env) ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed.";; \ + /bin/env|/usr/bin/env) if [ -x "$$file" ]; then \ + ${DELAYED_ERROR_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed."; \ + else \ + ${DELAYED_WARNING_MSG} "[check-interpreter.mk] The interpreter \"$$interp\" of \"${DESTDIR}${PREFIX}/$$file\" is not allowed."; \ + fi; \ + continue;; \ esac; \ \ if { [ ! -f ${DESTDIR:Q}"$$interp" ] && \ |