diff options
author | hubertf <hubertf@pkgsrc.org> | 2000-04-15 16:13:07 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2000-04-15 16:13:07 +0000 |
commit | 6dd4923307267065fb203374f786ea417f33299f (patch) | |
tree | 2b531293bffa5289fd3c0c8a301404a60a3437ee /mk | |
parent | 586a4ec3d521fa2bc397819c084a888e0b8a0f42 (diff) | |
download | pkgsrc-6dd4923307267065fb203374f786ea417f33299f.tar.gz |
Fix print-pkg-size: when parsing the PLIST, use awk to prepend the
proper prefix (defaults to $PREFIX, but can be changed by
@cwd from the PLIST).
Sent in in PR 9888 by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index ebabea35ab6..6987c92d00b 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.423 2000/04/13 23:19:20 hubertf Exp $ +i $NetBSD: bsd.pkg.mk,v 1.424 2000/04/15 16:13:07 hubertf Exp $ # # This file is in the public domain. # @@ -2562,9 +2562,10 @@ print-package-depends: print-pkg-size: ${_PKG_SILENT}${_PKG_DEBUG}( \ ${SHCOMMENT} "This pkg's files" ; \ - ${SED} -n \ - -e 's,^[^@],${PREFIX}/&,' \ - -e '/^\//p' \ + ${AWK} 'BEGIN { base = "${PREFIX}/" } \ + /^@cwd/ { base = $$2 "/" } \ + /^@ignore/ { next } \ + NF == 1 { print base $$1 }' \ <${PLIST} ; \ ${SHCOMMENT} "Any depending pkgs' files" ; \ if [ "${SIZEDEPENDS}" != "" ]; then \ |