diff options
author | rillig <rillig> | 2007-09-21 23:59:30 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-09-21 23:59:30 +0000 |
commit | 2c4de8badf3172e3d61ad4346f37c74c2dc0dde9 (patch) | |
tree | fc8d5490302b38ff031f3d5578e6d3b0995563ec /mk | |
parent | 8c955fbd0dea0f94504a85f2c944489aeb06fe46 (diff) | |
download | pkgsrc-2c4de8badf3172e3d61ad4346f37c74c2dc0dde9.tar.gz |
BINPKG_SITES may be empty, and most shells don't like syntactically
empty for loops.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/install/bin-install.mk | 8 |
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}; \ |