abuild: fix gnu getopt detection (trivial)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3359 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
41b35b52d8
commit
39d4e5f790
|
@ -495,7 +495,9 @@ LBROOT=$( cd ../..; pwd )
|
|||
verbose=false
|
||||
|
||||
# parse parameters.. try to find out whether we're running GNU getopt
|
||||
if [ "`getopt -V`" == "getopt.*" ]; then
|
||||
getoptbrand="`getopt -V`"
|
||||
if [ "${getoptbrand:0:6}" == "getopt" ]; then
|
||||
# Detected GNU getopt that supports long options.
|
||||
args=`getopt -l version,verbose,help,all,target:,broken,payloads:,test,cpus:,silent,xml Vvhat:bp:Tc:sx -- "$@"`
|
||||
eval set "$args"
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue