pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mk Introduce support for the PRINT_PLIST_AWK variable....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/456cc406b206
branches:  trunk
changeset: 472832:456cc406b206
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Mon Apr 12 20:48:07 2004 +0000

description:
Introduce support for the PRINT_PLIST_AWK variable.  This can be used to
provide extra awk expressions that are used while generating the PLIST
with the print-PLIST target (before the final 'print' is done), so that
it is closer to reality.  Ok'ed by wiz@ and hubertf@.

diffstat:

 mk/bsd.pkg.mk |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9a722e33e273 -r 456cc406b206 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Mon Apr 12 20:46:28 2004 +0000
+++ b/mk/bsd.pkg.mk     Mon Apr 12 20:48:07 2004 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.pkg.mk,v 1.1439 2004/04/11 20:17:37 jschauma Exp $
+#      $NetBSD: bsd.pkg.mk,v 1.1440 2004/04/12 20:48:07 jmmv Exp $
 #
 # This file is in the public domain.
 #
@@ -4630,6 +4630,7 @@
                        if ('$$genlinks') print $$0;                    \
                        next;                                           \
                }                                                       \
+               ${PRINT_PLIST_AWK}                                      \
                { print $$0; }'
        ${_PKG_SILENT}${_PKG_DEBUG}\
        for i in `${FIND} ${PREFIX}/. -xdev -newer ${EXTRACT_COOKIE} -type d -print\
@@ -4643,7 +4644,9 @@
                if [ `${LS} -la ${PREFIX}/$$i | ${WC} -l` = 3 ]; then   \
                        ${ECHO} @exec \$${MKDIR} %D/$$i ;               \
                fi ;                                                    \
-               ${ECHO} @dirrm $$i ;                                    \
+               ${ECHO} @dirrm $$i | ${AWK} '                           \
+                       ${PRINT_PLIST_AWK}                              \
+                       { print $$0; }' ;                               \
        done                                                            \
        | ${AWK} '${_PRINT_PLIST_AWK_SUBST} { print $$0; }'
 .endif # target(print-PLIST)



Home | Main Index | Thread Index | Old Index