summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-01-10 12:33:58 +0000
committeragc <agc@pkgsrc.org>2000-01-10 12:33:58 +0000
commite60f13c811028ce422868ed1ec85b59742298dd3 (patch)
treece6625021a22dca424d33e2fcf18f2eb038481c5 /mk
parenta906d33e8d23edc5488097d135670825c1368b75 (diff)
downloadpkgsrc-e60f13c811028ce422868ed1ec85b59742298dd3.tar.gz
Use _PKG_SILENT and _PKG_DEBUG in print-pkg-size, to aid debugging.
Make the print-pkg-size target work on Solaris if there are no pre-requisite packages.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk10
1 files changed, 6 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 5ed75534f50..fc8edc6ca79 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.383 2000/01/09 04:43:20 hubertf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.384 2000/01/10 12:33:58 agc Exp $
#
# This file is in the public domain.
#
@@ -2446,7 +2446,7 @@ print-package-depends:
# XXX This is intended to be run before pkg_create is called, so the
# existance of ${PLIST} can be assumed as granted.
print-pkg-size:
- @( \
+ ${_PKG_SILENT}${_PKG_DEBUG}( \
${SHCOMMENT} "This pkg's files" ; \
${SED} -n \
-e 's,^[^@],${PREFIX}/&,' \
@@ -2454,12 +2454,14 @@ print-pkg-size:
<${PLIST} ; \
${SHCOMMENT} "Any depending pkgs' files" ; \
if [ "${SIZEDEPENDS}" != "" ]; then \
- for p in ${DEPENDS:C/:.*//} ; do \
+ for p in ${DEPENDS:C/:.*//} "" ; do \
+ if [ "X$$p" = "X" ]; then continue; fi; \
${SHCOMMENT} direct depends ; \
pkg_info -qL "$$p" ; \
${SHCOMMENT} "depends of depends (XXX complete!)"; \
dps=`pkg_info -qf "$$p" | grep '@pkgdep' | awk '{ print $$2; }'` ; \
- for dp in $$dps ; do \
+ for dp in $$dps "" ; do \
+ if [ "X$$dp" = "X" ]; then continue; fi;\
pkg_info -qL "$$dp" ; \
done ; \
done ; \