diff options
author | grant <grant> | 2004-01-11 03:30:20 +0000 |
---|---|---|
committer | grant <grant> | 2004-01-11 03:30:20 +0000 |
commit | a15560821b2860ebcc9ba0874ffb1940142b9bdb (patch) | |
tree | 6c21c015974124114d2dcebc8e0d6cc22d3a15d1 | |
parent | 26b7288c46b834996ee7936ee93a6d5bc90c64f1 (diff) | |
download | pkgsrc-a15560821b2860ebcc9ba0874ffb1940142b9bdb.tar.gz |
"for arg; do" -> "for arg do", as the latter is more portable. fixes
buildlink3's wrappers on Solaris.
-rw-r--r-- | mk/buildlink3/gen-transform.sh | 4 | ||||
-rw-r--r-- | mk/buildlink3/libtool.sh | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/mk/buildlink3/gen-transform.sh b/mk/buildlink3/gen-transform.sh index 73b19c56b96..60148c32ce2 100644 --- a/mk/buildlink3/gen-transform.sh +++ b/mk/buildlink3/gen-transform.sh @@ -1,6 +1,6 @@ #!@BUILDLINK_SHELL@ # -# $NetBSD: gen-transform.sh,v 1.9 2004/01/07 07:10:05 jlam Exp $ +# $NetBSD: gen-transform.sh,v 1.10 2004/01/11 03:30:20 grant Exp $ transform="@_BLNK_TRANSFORM_SEDFILE@" untransform="@_BLNK_UNTRANSFORM_SEDFILE@" @@ -220,7 +220,7 @@ EOF esac } -for arg; do +for arg do case $arg in transform:*) gen transform "${arg#transform:}" diff --git a/mk/buildlink3/libtool.sh b/mk/buildlink3/libtool.sh index 6641672dc2b..02748f8aa16 100644 --- a/mk/buildlink3/libtool.sh +++ b/mk/buildlink3/libtool.sh @@ -1,6 +1,6 @@ #!@BUILDLINK_SHELL@ # -# $NetBSD: libtool.sh,v 1.9 2003/11/26 12:52:30 jlam Exp $ +# $NetBSD: libtool.sh,v 1.10 2004/01/11 03:30:20 grant Exp $ Xsed='@SED@ -e 1s/^X//' sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' @@ -45,7 +45,7 @@ mode=link prevopt= nonopt= lafile= -for arg; do +for arg do case $arg in -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; *) optarg= ;; |