From f161acbf1347e3a9411bbe65a98c4ed397a24361 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 1 Jan 2003 07:16:57 +0000 Subject: 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. --- mk/buildlink2/wrapper.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mk') 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 -- cgit v1.2.3