summaryrefslogtreecommitdiff
path: root/mk/check/check-interpreter.mk
diff options
context:
space:
mode:
authorrillig <rillig>2006-07-03 06:57:20 +0000
committerrillig <rillig>2006-07-03 06:57:20 +0000
commit0b9bd9252d079984d0f5126bee4366d7701e3571 (patch)
treebf14b3d2cbbc4fc19b0c305fbc377e689f3b3d0e /mk/check/check-interpreter.mk
parent2e9360f7fca37ab95bec045cf927c44340568e60 (diff)
downloadpkgsrc-0b9bd9252d079984d0f5126bee4366d7701e3571.tar.gz
Moved the command that generates the list of files to its own variable,
so it can be overridden on the command line. This allows to check for example ${WRKSRC} instead of the installed files. Of course, since the variable starts with an underscore, this feature is not meant to be official.
Diffstat (limited to 'mk/check/check-interpreter.mk')
-rw-r--r--mk/check/check-interpreter.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index 46512f89c4a..39347129fc4 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.9 2006/07/02 09:40:37 rillig Exp $
+# $NetBSD: check-interpreter.mk,v 1.10 2006/07/03 06:57:20 rillig Exp $
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -30,6 +30,8 @@ _CHECK_INTERP_SKIP_FILTER+= ${_CHECK_INTERP_SKIP:@.pattern.@${PREFIX}/${.pattern
_CHECK_INTERP_SKIP_FILTER+= *) ;;
_CHECK_INTERP_SKIP_FILTER+= esac
+_CHECK_INTERP_FILELIST_CMD?= ${PKG_FILELIST_CMD}
+
######################################################################
### check-interpreter (PRIVATE)
######################################################################
@@ -43,7 +45,7 @@ check-interpreter: error-check
.if !defined(NO_PKG_REGISTER)
${_PKG_SILENT}${_PKG_DEBUG} \
set -e; \
- ${PKG_FILELIST_CMD} | ${SORT} | ${SED} 's,\\,\\\\,g' | \
+ ${_CHECK_INTERP_FILELIST_CMD} | ${SORT} | ${SED} 's,\\,\\\\,g' |\
while read file; do \
${_CHECK_INTERP_SKIP_FILTER}; \
if ${TEST} ! -r "$$file"; then \