summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorrillig <rillig>2006-06-16 12:03:38 +0000
committerrillig <rillig>2006-06-16 12:03:38 +0000
commitfe87ad6aed2fa7e4473ab654e4e2a0883d4071b7 (patch)
treefa962f1f7c854ce17926a1daf8f7eb22af13ef08 /mk/check
parentf0c8d87ecdf4ac234b87798e30f0e7e68903d90d (diff)
downloadpkgsrc-fe87ad6aed2fa7e4473ab654e4e2a0883d4071b7.tar.gz
It is worth a warning if a freshly installed file is not readable.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-interpreter.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index fa3fc5faf59..a8c6f10db46 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.6 2006/06/14 15:09:34 jlam Exp $
+# $NetBSD: check-interpreter.mk,v 1.7 2006/06/16 12:03:38 rillig Exp $
CHECK_INTERPRETER?= no
@@ -27,9 +27,14 @@ check-interpreter: error-check
"in ${PKGNAME}"
.if !defined(NO_PKG_REGISTER)
${_PKG_SILENT}${_PKG_DEBUG} \
+ set -e; \
${PKG_FILELIST_CMD} | ${SORT} | ${SED} 's,\\,\\\\,g' | \
while read file; do \
${_CHECK_INTERP_SKIP_FILTER}; \
+ if ${TEST} ! -r "$$file"; then \
+ ${DELAYED_WARNING_MSG} "[check-interpreter.mk] File \"$$file\" cannot be read."; \
+ continue; \
+ fi; \
${SHCOMMENT} "[$$file]"; \
interp=`${SED} -n -e '1s/^#![[:space:]]*\([^[:space:]]*\).*/\1/p' -e '1q' < "$$file"` \
|| { ${DELAYED_WARNING_MSG} "[check-interpreter.mk] sed(1) failed for \"$$file\"."; \