summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam>2000-03-26 08:11:21 +0000
committerjlam <jlam>2000-03-26 08:11:21 +0000
commit045007d7ab095cc9b969798aa3141181e06be29b (patch)
treeeb839669694f26e545f4604704b4d0df716bcba0
parent4ef7c6b2a406e86a86a55e66c58204ffa6ae72c3 (diff)
downloadpkgsrc-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.mk9
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: