abuild: fix gnu getopt detection (trivial)
authorStefan Reinauer <stepan@coresystems.de>
Wed, 28 May 2008 08:40:23 +0000 (08:40 +0000)
committerStefan Reinauer <stepan@openbios.org>
Wed, 28 May 2008 08:40:23 +0000 (08:40 +0000)
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

util/abuild/abuild

index 96d19cd61b86b0474d955931e4ac5be1a38e019c..2d1382acca2fe2ca3015476c35902e11cad371aa 100755 (executable)
@@ -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