diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-22 19:06:34 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-06-22 19:06:34 -0400 |
commit | eedea0f24da5ac5637160f385479252c08761a54 (patch) | |
tree | 4c20fb463385b7c800442a6a866a527ac4a289ba /gcc | |
parent | 3e525997d7bff3bf668a128de616b1d51a06a4de (diff) | |
download | gcc-eedea0f24da5ac5637160f385479252c08761a54.zip gcc-eedea0f24da5ac5637160f385479252c08761a54.tar.gz gcc-eedea0f24da5ac5637160f385479252c08761a54.tar.bz2 |
Work around hpux8 /bin/sh case bug.
From-SVN: r10031
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/genmultilib | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/gcc/genmultilib b/gcc/genmultilib index 7d09d8b..158d93f 100644 --- a/gcc/genmultilib +++ b/gcc/genmultilib @@ -1,6 +1,6 @@ #!/bin/sh # Generates multilib.h. -# Copyright (C) 1994 Free Software Foundation, Inc. +# Copyright (C) 1994, 1995 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -161,12 +161,10 @@ else dirout="${dirout}" optout="${optout}" ./tmpmultilib2 $@ l=`echo ${first} | sed -e 's/=.*$//' -e 's/?/=/g'` r=`echo ${first} | sed -e 's/^.*=//' -e 's/?/=/g'` - case " ${optout} " in - *" ${l} "*) + if expr " ${optout} " : ".* ${l} .*" > /dev/null; then newopt=`echo " ${optout} " | sed -e "s/ ${l} / ${r} /" -e 's/^ //' -e 's/ $//'` dirout="${dirout}" optout="${newopt}" ./tmpmultilib2 $@ - ;; - esac + fi fi EOF chmod +x tmpmultilib2 @@ -210,12 +208,10 @@ for combo in ${combinations}; do setopts=`echo ${set} | sed -e 's|/| |g'` found= for opt in ${setopts}; do - case "${combo}" in - *"/${opt}/"*) + if expr "${combo} " : ".*/${opt}/.*" > /dev/null; then optout="${optout} ${opt}" found=yes - ;; - esac + fi done if [ "${found}" = "" ]; then for opt in ${setopts}; do |