From: Rudolf Polzer Date: Sun, 4 Jul 2010 16:28:02 +0000 (+0200) Subject: ./all compile "wgl sdl dedicated" (allow multiple targets to be given) X-Git-Tag: xonotic-v0.1.0preview~383 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=c68423b1ef3a36ade0650cdfd1b50e2f676988e9 ./all compile "wgl sdl dedicated" (allow multiple targets to be given) --- diff --git a/all b/all index 63784c1c..c9de1c46 100755 --- a/all +++ b/all @@ -451,20 +451,25 @@ case "$cmd" in cleanqc=true # version info ;; esac - case "$1" in - sdl) - TARGETS="sdl-debug" - shift - ;; - glx|agl|wgl) - TARGETS="cl-debug" - shift - ;; - dedicated) - TARGETS="sv-debug" - shift - ;; - esac + if [ -n "$1" ]; then + TARGETS= + for X in $1; do + 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 + fi if [ -z "$MAKEFLAGS" ]; then if [ -f /proc/cpuinfo ]; then ncpus=$((`grep -c '^processor :' /proc/cpuinfo`+0))