summaryrefslogtreecommitdiff
path: root/mk/check
diff options
context:
space:
mode:
authorrillig <rillig>2006-11-12 00:49:57 +0000
committerrillig <rillig>2006-11-12 00:49:57 +0000
commit415d47ec0145b15ade6662d8c9ec4d885d52936e (patch)
treeca470ff2b2a497d1fb8e7df5449faa0d2220c4c0 /mk/check
parentf3e06bda439eb4b54d124c3360fb0feeb770a575 (diff)
downloadpkgsrc-415d47ec0145b15ade6662d8c9ec4d885d52936e.tar.gz
Moved the test whether this check should be enabled to this file.
Removed the dependency to NO_PKG_REGISTER. Renamed the check-interpreter target to _check-interpreter.
Diffstat (limited to 'mk/check')
-rw-r--r--mk/check/check-interpreter.mk20
1 files changed, 7 insertions, 13 deletions
diff --git a/mk/check/check-interpreter.mk b/mk/check/check-interpreter.mk
index 965a61b4eb5..60f46c3ec27 100644
--- a/mk/check/check-interpreter.mk
+++ b/mk/check/check-interpreter.mk
@@ -1,4 +1,4 @@
-# $NetBSD: check-interpreter.mk,v 1.15 2006/11/12 00:37:44 rillig Exp $
+# $NetBSD: check-interpreter.mk,v 1.16 2006/11/12 00:49:57 rillig Exp $
#
# This file checks that after installation, all files of the package
# that start with a "#!" line will find their interpreter. Files that
@@ -32,17 +32,12 @@ _CHECK_INTERP_SKIP+= ${CHECK_INTERPRETER_SKIP}
_CHECK_INTERP_FILELIST_CMD?= ${SED} -e '/^@/d' ${PLIST}
-######################################################################
-### check-interpreter (PRIVATE)
-######################################################################
-### check-interpreter verifies that the interpreters for all installed
-### scripts exist.
-###
-.PHONY: check-interpreter
-check-interpreter: error-check
- @${STEP_MSG} "Checking for non-existent script interpreters" \
- "in ${PKGNAME}"
-.if !defined(NO_PKG_REGISTER)
+.if !empty(CHECK_INTERPRETER:M[Yy][Ee][Ss])
+privileged-install-hook: _check-interpreter
+.endif
+
+_check-interpreter: error-check .PHONY
+ @${STEP_MSG} "Checking for non-existent script interpreters in ${PKGNAME}"
${_PKG_SILENT}${_PKG_DEBUG} \
set -e; \
cd ${PREFIX}; \
@@ -72,4 +67,3 @@ check-interpreter: error-check
fi; \
fi; \
done
-.endif