summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2001-09-14 18:54:43 +0000
committerjlam <jlam>2001-09-14 18:54:43 +0000
commitf1d066f76c17d89697ecf2ccca575ac1b5f9b5e7 (patch)
treebd377853b21f01c38b2cd21c73bbbe9e64b650ec /mk
parentf7244a39e1c7676f4322f0878560cf2bf27ccfb5 (diff)
downloadpkgsrc-f1d066f76c17d89697ecf2ccca575ac1b5f9b5e7.tar.gz
Fix problem with Solaris' /bin/sh not accepting an empty list in a for
loop noted in pkg/13894 by Stoned Elipot <Stoned.Elipot@script.jussieu.fr>. The suggested fix was applied.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index b8756779476..4a32deb40dd 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.811 2001/09/14 01:52:41 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.812 2001/09/14 18:54:43 jlam Exp $
#
# This file is in the public domain.
#
@@ -1238,8 +1238,9 @@ show-depends-dirs:
${_PKG_SILENT}${_PKG_DEBUG} \
dlist="";\
thisdir=`pwd`;\
- for reldir in ${DEPENDS:C/^[^:]*://:C/:.*$//} ${BUILD_DEPENDS:C/^[^:]*://:C/:.*$//} ;\
+ for reldir in "" ${DEPENDS:C/^[^:]*://:C/:.*$//} ${BUILD_DEPENDS:C/^[^:]*://:C/:.*$//} ;\
do \
+ if [ "X$$reldir" = "X" ]; then continue; fi ;\
cd $$thisdir/$$reldir ;\
PWD=`pwd` ;\
d=`dirname $$PWD` ;\