]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
fix the shifting
[xonotic/xonotic.git] / all
diff --git a/all b/all
index c9de1c4641b4e697dda57493c06993692f7efcfc..920396b4ffe33a68e9235bfc615ee7882f527e71 100755 (executable)
--- a/all
+++ b/all
@@ -426,7 +426,7 @@ case "$cmd" in
                        if [ -z "$CC" ]; then
                                export CC=gcc
                        fi
-               elif [ x"`uname`" = x"Darwin" ] && ( [ -d /Library/Frameworks/SDL.framework ] || [ -d $(HOME)/Library/Frameworks/SDL.framework ] ); then
+               elif [ x"`uname`" = x"Darwin" ] && { [ -d /Library/Frameworks/SDL.framework ] || [ -d "$HOME/Library/Frameworks/SDL.framework" ]; }; then
                        # AGL is broken in Snow Leopard, so let's default to SDL if it is available.
                        TARGETS="sv-debug sdl-debug"
                else
@@ -457,18 +457,16 @@ case "$cmd" in
                                case "$X" in
                                        sdl)
                                                TARGETS="sdl-debug $TARGETS"
-                                               shift
                                                ;;
                                        glx|agl|wgl)
                                                TARGETS="cl-debug $TARGETS"
-                                               shift
                                                ;;
                                        dedicated)
                                                TARGETS="sv-debug $TARGETS"
-                                               shift
                                                ;;
                                esac
                        done
+                       shift
                fi
                if [ -z "$MAKEFLAGS" ]; then
                        if [ -f /proc/cpuinfo ]; then