diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-04-12 20:48:07 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-04-12 20:48:07 +0000 |
commit | a64b9925a6a8c470472799db0f6c1ad06fd93659 (patch) | |
tree | 20e26eb8ae2cc203f0d36836c8db3bf54f6fa69c /mk | |
parent | 12c332fb00a23803f1c22b534fcb3739965d9acf (diff) | |
download | pkgsrc-a64b9925a6a8c470472799db0f6c1ad06fd93659.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.mk | 7 |
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) |