diff options
-rwxr-xr-x | util/abuild/abuild | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild index 11dbea2fe3..5aacd6989f 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -603,9 +603,12 @@ EOF # default options target="" buildall=false -LBROOT=$( cd ../..; pwd ) verbose=false +test -f util/newconfig/config.g && LBROOT=$( pwd ) +test -f ../util/newconfig/config.g && LBROOT=$( cd ..; pwd ) +test "$LBROOT" = "" && LBROOT=$( cd ../..; pwd ) + # parse parameters.. try to find out whether we're running GNU getopt getoptbrand="`getopt -V`" if [ "${getoptbrand:0:6}" == "getopt" ]; then |