summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-04-12 20:48:07 +0000
committerjmmv <jmmv>2004-04-12 20:48:07 +0000
commit8095b64dca5c18d76c53b3e102cd0b2806a9a3b0 (patch)
tree20e26eb8ae2cc203f0d36836c8db3bf54f6fa69c /mk
parent742ee3ae04e2d2d632e5a4558ac05f5543959cbb (diff)
downloadpkgsrc-8095b64dca5c18d76c53b3e102cd0b2806a9a3b0.tar.gz
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 (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index a00849c57fe..f6c955b82fd 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -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 @@ print-PLIST:
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 @@ print-PLIST:
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)