Commit eedea0f2 by Richard Kenner

Work around hpux8 /bin/sh case bug.

From-SVN: r10031
parent 3e525997
#!/bin/sh #!/bin/sh
# Generates multilib.h. # 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. #This file is part of GNU CC.
...@@ -161,12 +161,10 @@ else ...@@ -161,12 +161,10 @@ else
dirout="${dirout}" optout="${optout}" ./tmpmultilib2 $@ dirout="${dirout}" optout="${optout}" ./tmpmultilib2 $@
l=`echo ${first} | sed -e 's/=.*$//' -e 's/?/=/g'` l=`echo ${first} | sed -e 's/=.*$//' -e 's/?/=/g'`
r=`echo ${first} | sed -e 's/^.*=//' -e 's/?/=/g'` r=`echo ${first} | sed -e 's/^.*=//' -e 's/?/=/g'`
case " ${optout} " in if expr " ${optout} " : ".* ${l} .*" > /dev/null; then
*" ${l} "*)
newopt=`echo " ${optout} " | sed -e "s/ ${l} / ${r} /" -e 's/^ //' -e 's/ $//'` newopt=`echo " ${optout} " | sed -e "s/ ${l} / ${r} /" -e 's/^ //' -e 's/ $//'`
dirout="${dirout}" optout="${newopt}" ./tmpmultilib2 $@ dirout="${dirout}" optout="${newopt}" ./tmpmultilib2 $@
;; fi
esac
fi fi
EOF EOF
chmod +x tmpmultilib2 chmod +x tmpmultilib2
...@@ -210,12 +208,10 @@ for combo in ${combinations}; do ...@@ -210,12 +208,10 @@ for combo in ${combinations}; do
setopts=`echo ${set} | sed -e 's|/| |g'` setopts=`echo ${set} | sed -e 's|/| |g'`
found= found=
for opt in ${setopts}; do for opt in ${setopts}; do
case "${combo}" in if expr "${combo} " : ".*/${opt}/.*" > /dev/null; then
*"/${opt}/"*)
optout="${optout} ${opt}" optout="${optout} ${opt}"
found=yes found=yes
;; fi
esac
done done
if [ "${found}" = "" ]; then if [ "${found}" = "" ]; then
for opt in ${setopts}; do for opt in ${setopts}; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment