summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-09-21 23:59:30 +0000
committerrillig <rillig@pkgsrc.org>2007-09-21 23:59:30 +0000
commit9993d0aa30475b87c9ed7841041a65cd280274c8 (patch)
treefc8d5490302b38ff031f3d5578e6d3b0995563ec /mk/install
parentf3336e052982b94cfefcf8b0efa79d3588db565d (diff)
downloadpkgsrc-9993d0aa30475b87c9ed7841041a65cd280274c8.tar.gz
BINPKG_SITES may be empty, and most shells don't like syntactically
empty for loops.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/bin-install.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/mk/install/bin-install.mk b/mk/install/bin-install.mk
index d719bb1ac63..75f73f50396 100644
--- a/mk/install/bin-install.mk
+++ b/mk/install/bin-install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bin-install.mk,v 1.14 2007/09/19 13:32:59 rillig Exp $
+# $NetBSD: bin-install.mk,v 1.15 2007/09/21 23:59:30 rillig Exp $
#
# This file provides the following targets:
@@ -68,7 +68,8 @@ locked-su-do-bin-install:
rel=${_SHORT_UNAME_R:Q}; \
arch=${MACHINE_ARCH:Q}; \
pkg_path=${PKGREPOSITORY:Q}; \
- for i in ${BINPKG_SITES}; do \
+ set args ${BINPKG_SITES}; shift; \
+ for i in "$$@"; do \
pkg_path="$$pkg_path;$$i/All"; \
done; \
${STEP_MSG} "Installing ${PKGNAME} from $$pkg_path"; \
@@ -91,7 +92,8 @@ locked-su-do-bin-install:
rel=${_SHORT_UNAME_R:Q}; \
arch=${MACHINE_ARCH:Q}; \
pkg_path=${PKGREPOSITORY:Q}; \
- for i in ${BINPKG_SITES}; do \
+ set args ${BINPKG_SITES}; shift; \
+ for i in "$$@"; do \
pkg_path="$$pkg_path;$$i/All"; \
done; \
pkgpattern=${PKGNAME_REQD:U${PKGNAME}:Q}; \