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 command that generates the list of ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f41645e0efb1
branches:  trunk
changeset: 515497:f41645e0efb1
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Jul 03 06:57:20 2006 +0000

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

 mk/check/check-interpreter.mk |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 495c67b6e5f3 -r f41645e0efb1 mk/check/check-interpreter.mk
--- a/mk/check/check-interpreter.mk     Mon Jul 03 05:15:49 2006 +0000
+++ b/mk/check/check-interpreter.mk     Mon Jul 03 06:57:20 2006 +0000
@@ -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_FILTER+=    esac
 
+_CHECK_INTERP_FILELIST_CMD?=   ${PKG_FILELIST_CMD}
+
 ######################################################################
 ### check-interpreter (PRIVATE)
 ######################################################################
@@ -43,7 +45,7 @@
 .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                          \



Home | Main Index | Thread Index | Old Index