diff options
author | jlam <jlam> | 2000-03-26 08:11:21 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-03-26 08:11:21 +0000 |
commit | 045007d7ab095cc9b969798aa3141181e06be29b (patch) | |
tree | eb839669694f26e545f4604704b4d0df716bcba0 | |
parent | 4ef7c6b2a406e86a86a55e66c58204ffa6ae72c3 (diff) | |
download | pkgsrc-045007d7ab095cc9b969798aa3141181e06be29b.tar.gz |
In print-pkg-size target, pre-filter the input to "xargs ls -ld" to
shell escape any spaces in the filename. This allows building with the
correct package size for things like StarOffice or Maelstrom.
-rw-r--r-- | mk/bsd.pkg.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 8ed17356249..52d91b1183f 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.419 2000/03/25 17:17:37 fredb Exp $ +# $NetBSD: bsd.pkg.mk,v 1.420 2000/03/26 08:11:21 jlam Exp $ # # This file is in the public domain. # @@ -2570,10 +2570,11 @@ print-pkg-size: fi ; \ ) \ | sort -u \ + | ${SED} -e 's, ,\\ ,g' \ | xargs ls -ld \ - | awk 'BEGIN { sum=0; } \ - { sum+=$$5; } \ - END { print sum; }' + | ${AWK} 'BEGIN { sum=0; } \ + { sum+=$$5; } \ + END { print sum; }' # Find sizes of required pkgs print-pkg-depend-sizes: |