pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check Moved the test whether this check should be e...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d08638f8c77e
branches:  trunk
changeset: 521432:d08638f8c77e
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Nov 12 00:49:57 2006 +0000

description:
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:

 mk/check/check-interpreter.mk |  20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diffs (38 lines):

diff -r bb78eff398d5 -r d08638f8c77e mk/check/check-interpreter.mk
--- a/mk/check/check-interpreter.mk     Sun Nov 12 00:44:24 2006 +0000
+++ b/mk/check/check-interpreter.mk     Sun Nov 12 00:49:57 2006 +0000
@@ -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_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 @@
                        fi;                                             \
                fi;                                                     \
        done
-.endif



Home | Main Index | Thread Index | Old Index