From: Rudolf Polzer Date: Fri, 19 Nov 2010 12:49:13 +0000 (+0100) Subject: allow to opt out of gdb X-Git-Tag: xonotic-v0.1.0preview~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9e1082c1fafc4b1c84a0b667a96d3d4d44941ca0;p=xonotic%2Fxonotic.git allow to opt out of gdb --- diff --git a/all b/all index 7ec990f8..d7967467 100755 --- a/all +++ b/all @@ -1010,9 +1010,9 @@ case "$cmd" in binary=$1 - if [ -n "$USE_GDB" ]; then + if [ x"$USE_GDB" = x"yes" ]; then set -- gdb --args "$@" - elif which gdb >/dev/null 2>&1; then + elif [ x"$USE_GDB" != x"no" ] && which gdb >/dev/null 2>&1; then set -- gdb --batch -x savecore.gdb --args "$@" elif which catchsegv >/dev/null 2>&1; then set -- catchsegv "$@"