summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.check.mk
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-01-21 10:04:44 +0000
committerrillig <rillig@pkgsrc.org>2006-01-21 10:04:44 +0000
commita47edae107a0e84fff32c6f05ce2ff56069c58cb (patch)
treef10f4750fecaef9f8f8d20a037a21986e4ceac31 /mk/bsd.pkg.check.mk
parent5690a6271fcc598976a79b63bd26cacdf233b045 (diff)
downloadpkgsrc-a47edae107a0e84fff32c6f05ce2ff56069c58cb.tar.gz
Depending on whether a file is executable or not, it is an error or a
warning if its first line starts with "#!", and the following word is not an existing file. The package devel/apr installs some *.exp files that start with "#!", but are not intended to be executed.
Diffstat (limited to 'mk/bsd.pkg.check.mk')
-rw-r--r--mk/bsd.pkg.check.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/mk/bsd.pkg.check.mk b/mk/bsd.pkg.check.mk
index 5567209b27e..8a3b56cbbfe 100644
--- a/mk/bsd.pkg.check.mk
+++ b/mk/bsd.pkg.check.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.check.mk,v 1.25 2006/01/12 11:13:13 rillig Exp $
+# $NetBSD: bsd.pkg.check.mk,v 1.26 2006/01/21 10:04:44 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the various install-time "check"
@@ -450,8 +450,12 @@ check-interpreter:
"") continue; \
esac; \
if ${TEST} ! -f "$$interp"; then \
- ${ECHO} "[bsd.pkg.check.mk] ERROR: File \"$$file\"'s interpreter \"$$interp\" does not exist." 1>&2; \
- exitcode=1; \
+ if ${TEST} -x "$$interp"; then \
+ ${ECHO} "[bsd.pkg.check.mk] ERROR: The interpreter \"$$interp\" of \"$$file\" does not exist." 1>&2; \
+ exitcode=1; \
+ else \
+ ${ECHO} "[bsd.pkg.check.mk] WARNING: The interpreter \"$$interp\" of \"$$file\" does not exist." 1>&2; \
+ fi; \
fi; \
done; \
exit $$exitcode; }