summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-01-01 07:16:57 +0000
committerjlam <jlam@pkgsrc.org>2003-01-01 07:16:57 +0000
commitf161acbf1347e3a9411bbe65a98c4ed397a24361 (patch)
tree6897a6a823780ada5b38c57a2f565d9cb908d8ec /mk
parent51da998bd46ffc6e2a00d93f35298223409b56ad (diff)
downloadpkgsrc-f161acbf1347e3a9411bbe65a98c4ed397a24361.tar.gz
Use a while loop instead of a for loop to iterate over the arguments. This
potentially allows for manipulating sequences of arguments instead of just one argument at a time.
Diffstat (limited to 'mk')
-rw-r--r--mk/buildlink2/wrapper.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/buildlink2/wrapper.sh b/mk/buildlink2/wrapper.sh
index 1d8323bf3cb..79e0b9ed893 100644
--- a/mk/buildlink2/wrapper.sh
+++ b/mk/buildlink2/wrapper.sh
@@ -1,6 +1,6 @@
#!@BUILDLINK_SHELL@
#
-# $NetBSD: wrapper.sh,v 1.6 2002/12/26 17:08:57 jlam Exp $
+# $NetBSD: wrapper.sh,v 1.7 2003/01/01 07:16:57 jlam Exp $
Xsed='@SED@ -e 1s/^X//'
sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
@@ -30,7 +30,8 @@ WRKDIR="@WRKDIR@"
WRKSRC="@WRKSRC@"
cmd="@WRAPPEE@"
-for arg do
+while $test $# -gt 0; do
+ arg="$1"; shift
cachehit=no
skipcache=no
. $private_cache