diff options
author | agc <agc> | 1999-03-09 16:39:56 +0000 |
---|---|---|
committer | agc <agc> | 1999-03-09 16:39:56 +0000 |
commit | 0c86087ba3de9d1397edf030e39767dd3a9bf62c (patch) | |
tree | 8d4067d7ab02389f458abaed25c8f3cf7ab678e5 /mk | |
parent | 672631e55cd0a02deb5119de1a1d515bfddf9539 (diff) | |
download | pkgsrc-0c86087ba3de9d1397edf030e39767dd3a9bf62c.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.mk | 6 |
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 |