diff options
author | tron <tron> | 2000-07-14 18:37:05 +0000 |
---|---|---|
committer | tron <tron> | 2000-07-14 18:37:05 +0000 |
commit | 50e22e5bbbc51f7b51739831d2231ebb6082cbba (patch) | |
tree | bae0b5658bf2240c6b48e558f5c66db7b72e1c6a /mk | |
parent | ac022b5fb0314b3beb1ddc9bc1d312cf7cb11f34 (diff) | |
download | pkgsrc-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.mk | 6 |
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: |