summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortron <tron>2000-07-14 18:37:05 +0000
committertron <tron>2000-07-14 18:37:05 +0000
commit50e22e5bbbc51f7b51739831d2231ebb6082cbba (patch)
treebae0b5658bf2240c6b48e558f5c66db7b72e1c6a /mk
parentac022b5fb0314b3beb1ddc9bc1d312cf7cb11f34 (diff)
downloadpkgsrc-50e22e5bbbc51f7b51739831d2231ebb6082cbba.tar.gz
Use "printf("%d", ...)" instead of "print ..." when invoking "awk" in
"print-pkg-size-this" or "print-pkg-size-depends" targets to avoid package sizes like "2.51887e+09" which "expr" can't handle.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index d65c1fee1bc..b2adc8f3d27 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.504 2000/07/14 16:04:24 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.505 2000/07/14 18:37:05 tron Exp $
#
# This file is in the public domain.
#
@@ -2754,7 +2754,7 @@ print-pkg-size-this:
| xargs ls -ld \
| ${AWK} 'BEGIN { sum=0; } \
{ sum+=$$5; } \
- END { print sum; }'
+ END { printf("%d\n", sum); }'
# Sizes of required pkgs (only)
#
@@ -2764,7 +2764,7 @@ print-pkg-size-depends:
@${MAKE} ${MAKEFLAGS} print-pkg-size-depends-help \
| ${AWK} 'BEGIN { sum=0; } \
{ sum+=$$1; } \
- END { print sum; }'
+ END { printf("%d\n", sum); }'
# 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: