From 39d4e5f790614db81be84ee6f221c6a055ccb175 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 28 May 2008 08:40:23 +0000 Subject: abuild: fix gnu getopt detection (trivial) Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3359 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'util/abuild') diff --git a/util/abuild/abuild b/util/abuild/abuild index 96d19cd61b..2d1382acca 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -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 -- cgit v1.2.3