summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2000-09-15 09:14:21 +0000
committertron <tron@pkgsrc.org>2000-09-15 09:14:21 +0000
commit82cf593ae1721c39c8983b64040d9590eb06d295 (patch)
tree903544ada0c9f9b7b6f8b9a7a071e6c30409a02e /mk
parent4926a21e67ceaad51381eb91719addfc4bc3dce7 (diff)
downloadpkgsrc-82cf593ae1721c39c8983b64040d9590eb06d295.tar.gz
Rewrite "print-pkg-size-depends" target to work without invoking "awk".
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 9f285d49356..2edc9dabca8 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.573 2000/09/15 09:04:51 tron Exp $
+# $NetBSD: bsd.pkg.mk,v 1.574 2000/09/15 09:14:21 tron Exp $
#
# This file is in the public domain.
#
@@ -2868,17 +2868,17 @@ print-pkg-size-this:
# dependencies are all installed
print-pkg-size-depends:
@${MAKE} ${MAKEFLAGS} print-pkg-size-depends-help \
- | ${AWK} 'BEGIN { print("0"); } \
- { print($$1, " +"); } \
- END { print("p"); }' \
| ${DC}
# need this in a make look to prevent the shell clobbering the depends
# also includes size of depends of depends (XXX)
print-pkg-size-depends-help:
+ @${ECHO} "0"
.for dep in ${DEPENDS}
@pkg="${dep:C/:.*//}"; \
- ${PKG_INFO} -qS "$$pkg" | ${HEAD} -1
+ size=`${PKG_INFO} -qS "$$pkg"`; \
+ ${TEST} -z "$$size" || ${ECHO} "$$size +"
.endfor
+ @${ECHO} "p"
###