diff options
author | agc <agc@pkgsrc.org> | 2000-01-10 12:33:58 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2000-01-10 12:33:58 +0000 |
commit | e60f13c811028ce422868ed1ec85b59742298dd3 (patch) | |
tree | ce6625021a22dca424d33e2fcf18f2eb038481c5 /mk | |
parent | a906d33e8d23edc5488097d135670825c1368b75 (diff) | |
download | pkgsrc-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.mk | 10 |
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 ; \ |