mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-28 01:56:38 +12:00
* config.sub: Rewrite basic_machine 'if' with 'case'.
Signed-off-by: Ben Elliston <bje@gnu.org>
This commit is contained in:
parent
d23f148145
commit
f3e464fb69
@ -1,3 +1,7 @@
|
|||||||
|
2018-05-01 John Ericson <john.ericson@obsidian.systems>
|
||||||
|
|
||||||
|
* config.sub: Rewrite basic_machine 'if' with 'case'.
|
||||||
|
|
||||||
2018-05-01 Francois H. Theron <francois.theron@netronome.com>
|
2018-05-01 Francois H. Theron <francois.theron@netronome.com>
|
||||||
Ben Elliston <bje@gnu.org>
|
Ben Elliston <bje@gnu.org>
|
||||||
|
|
||||||
|
11
config.sub
vendored
11
config.sub
vendored
@ -128,9 +128,14 @@ case $maybe_os in
|
|||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
|
basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
|
||||||
if [ "$basic_machine" != "$1" ]
|
case $1 in
|
||||||
then os=`echo "$1" | sed 's/.*-/-/'`
|
*-*)
|
||||||
else os=; fi
|
os=`echo "$1" | sed 's/.*-/-/'`
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
os=
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user