mirror of
git://git.savannah.gnu.org/config.git
synced 2025-07-07 13:48:21 +12:00
* config.sub: Rewrite basic_machine 'if' with 'case'.
Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:

committed by
Ben Elliston

parent
d23f148145
commit
f3e464fb69
11
config.sub
vendored
11
config.sub
vendored
@ -128,9 +128,14 @@ case $maybe_os in
|
||||
;;
|
||||
*)
|
||||
basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
|
||||
if [ "$basic_machine" != "$1" ]
|
||||
then os=`echo "$1" | sed 's/.*-/-/'`
|
||||
else os=; fi
|
||||
case $1 in
|
||||
*-*)
|
||||
os=`echo "$1" | sed 's/.*-/-/'`
|
||||
;;
|
||||
*)
|
||||
os=
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Reference in New Issue
Block a user