diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2008-05-28 08:40:23 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2008-05-28 08:40:23 +0000 |
commit | 39d4e5f790614db81be84ee6f221c6a055ccb175 (patch) | |
tree | 6fb26a892aa7e99400f8e0d68e24c01046e17caf /util/abuild | |
parent | 41b35b52d83305ea242dc13fd841703bf594c3a9 (diff) |
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
Diffstat (limited to 'util/abuild')
-rwxr-xr-x | util/abuild/abuild | 4 |
1 files changed, 3 insertions, 1 deletions
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 |