forked from Imagelibrary/binutils-gdb
better error testing on perverse cases (eg, ./config.sub -sun3)
This commit is contained in:
2
config.sub
vendored
2
config.sub
vendored
@@ -46,7 +46,7 @@ case $1 in
|
||||
esac
|
||||
|
||||
# Separate what the user gave into CPU-COMPANY and OS (if any).
|
||||
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
||||
basic_machine=`echo $1 | sed 's/-[^-]+$//'`
|
||||
if [ $basic_machine != $1 ]
|
||||
then os=`echo $1 | sed 's/.*-/-/'`
|
||||
else os=; fi
|
||||
|
||||
Reference in New Issue
Block a user