summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2000-01-10 12:33:58 +0000
committeragc <agc>2000-01-10 12:33:58 +0000
commit257459cda1c11eec4be933593798aa91c9c67644 (patch)
treece6625021a22dca424d33e2fcf18f2eb038481c5 /mk
parent875956ccf26a0a608ee3dc9efe1104ca653a9739 (diff)
downloadpkgsrc-257459cda1c11eec4be933593798aa91c9c67644.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 ; \