summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1999-03-09 16:39:56 +0000
committeragc <agc>1999-03-09 16:39:56 +0000
commit9950e66d3592e84008f4f10cde2e8be422eedde5 (patch)
tree8d4067d7ab02389f458abaed25c8f3cf7ab678e5 /mk
parentc8254ff64f87c35209c0cf7bb2301c3c1255b13a (diff)
downloadpkgsrc-9950e66d3592e84008f4f10cde2e8be422eedde5.tar.gz
Fix another difference between Solaris and NetBSD sh(1). On Solaris,
for f in $var; do... where $var is empty, produces an error.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 39d0cc53246..629f8b66f9a 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.223 1999/03/09 15:31:59 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.224 1999/03/09 16:39:56 agc Exp $
#
# This file is in the public domain.
#
@@ -1019,7 +1019,9 @@ do-extract:
fi
.endif # WRKOBJDIR
.endif
- ${_PKG_SILENT}${_PKG_DEBUG}for file in ${EXTRACT_ONLY}; do \
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ for file in "" ${EXTRACT_ONLY}; do \
+ if [ "X$$file" = X"" ]; then continue; fi; \
(cd ${WRKDIR} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/$$file ${EXTRACT_AFTER_ARGS}); \
done
.endif