diff options
author | rillig <rillig@pkgsrc.org> | 2006-11-12 00:49:57 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-11-12 00:49:57 +0000 |
commit | c879441de571428328e1fdcf9ecfd0b9edd978fa (patch) | |
tree | ca470ff2b2a497d1fb8e7df5449faa0d2220c4c0 | |
parent | 918d65cc093fc4d6b640d2c2b912268851edabc3 (diff) | |
download | pkgsrc-c879441de571428328e1fdcf9ecfd0b9edd978fa.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.
-rw-r--r-- | mk/check/check-interpreter.mk | 20 |
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 |