From: Rudolf Polzer Date: Sun, 25 Apr 2010 18:21:54 +0000 (+0200) Subject: workaround for windows to not compile the SDL binary, and default to WGL X-Git-Tag: xonotic-v0.1.0preview~485 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=27afc09631e16d5f97b95dd24a479f5ebeabcc76 workaround for windows to not compile the SDL binary, and default to WGL --- diff --git a/all b/all index 77bb5e2b..9a0a6d0c 100755 --- a/all +++ b/all @@ -23,6 +23,7 @@ case "$0" in # Windows hates users. So this script has to copy itself elsewhere first... tname= cp "$SELF" ../all.xonotic.sh + export WE_HATE_OUR_USERS=1 exec ../all.xonotic.sh "$@" ;; esac @@ -157,8 +158,8 @@ case "$cmd" in verbose git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" # TODO remove this line later - verbose git config core.autocrlf input - verbose git config core.safecrlf true + verbose git config core.autocrlf false + verbose git config core.safecrlf false # we don't NEED that... r=`git symbolic-ref HEAD` r=${r#refs/heads/} @@ -351,10 +352,16 @@ case "$cmd" in enter "$d0/darkplaces" verbose verbose make $MAKEFLAGS sv-debug verbose make $MAKEFLAGS cl-debug - verbose make $MAKEFLAGS sdl-debug + if ! [ -n "$WE_HATE_OUR_USERS" ]; then + verbose make $MAKEFLAGS sdl-debug + fi ;; run) - client=-sdl + if [ -n "$WE_HATE_OUR_USERS" ]; then + client= + else + client=-sdl + fi case "$1" in sdl|glx|agl|dedicated) client=-$1