]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
env variable XONOTIC_INCLUDE_ALL to download ALL builds, not just your platform ...
authorRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 16:42:30 +0000 (17:42 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 16:42:30 +0000 (17:42 +0100)
misc/tools/rsync-updater/update-xonotic.bat
misc/tools/rsync-updater/update-xonotic.sh

index 43d2cc69ddf42da27c23c192429617b2eaf7f9d8..ee7fa39e1b0b01645edecc46cfaec4a29bca3fad 100644 (file)
@@ -67,6 +67,7 @@ goto xonotic
 :endxonotic\r
 \r
 set excludes=\r
+if not "%XONOTIC_INCLUDE_ALL%" == "" goto endbit\r
 set excludes=%excludes% --exclude=/xonotic-linux*\r
 set excludes=%excludes% --exclude=/xonotic-osx-*\r
 set excludes=%excludes% --exclude=/Xonotic*.app\r
index d34c7e34842a28f9e100109cb701b88e5c9c6121..c0b9398ace796a28d4d62408d6df2b65d82e9a90 100755 (executable)
@@ -47,36 +47,38 @@ else
 fi
 
 excludes=
-excludes="$excludes --exclude=/*.exe"
-excludes="$excludes --exclude=/fteqcc/*.exe"
-excludes="$excludes --exclude=/bin32"
-excludes="$excludes --exclude=/*.dll"
-excludes="$excludes --exclude=/bin64"
+if [ -z "$XONOTIC_INCLUDE_ALL" ]; then
+       excludes="$excludes --exclude=/*.exe"
+       excludes="$excludes --exclude=/fteqcc/*.exe"
+       excludes="$excludes --exclude=/bin32"
+       excludes="$excludes --exclude=/*.dll"
+       excludes="$excludes --exclude=/bin64"
 
-case `uname`:`uname -m` in
-       Darwin:*)
-               excludes="$excludes --exclude=/xonotic-linux*"
-               excludes="$excludes --exclude=/fteqcc/fteqcc.linux*"
-               ;;
-       Linux:x86_64)
-               excludes="$excludes --exclude=/Xonotic*.app"
-               excludes="$excludes --exclude=/xonotic-osx-*"
-               excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
-               if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
-                       excludes="$excludes --exclude=/xonotic-linux32-*"
-                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
-               fi
-               ;;
-       Linux:i?86)
-               excludes="$excludes --exclude=/Xonotic*.app"
-               excludes="$excludes --exclude=/xonotic-osx-*"
-               excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
-               excludes="$excludes --exclude=/xonotic-linux64-*"
-               excludes="$excludes --exclude=/fteqcc/fteqcc.linux64"
-               ;;
-       *)
-               echo >&2 "WARNING: Could not detect architecture - downloading all architectures"
-               ;;
-esac
+       case `uname`:`uname -m` in
+               Darwin:*)
+                       excludes="$excludes --exclude=/xonotic-linux*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux*"
+                       ;;
+               Linux:x86_64)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       if [ -z "$XONOTIC_INCLUDE_32BIT" ]; then
+                               excludes="$excludes --exclude=/xonotic-linux32-*"
+                               excludes="$excludes --exclude=/fteqcc/fteqcc.linux32"
+                       fi
+                       ;;
+               Linux:i?86)
+                       excludes="$excludes --exclude=/Xonotic*.app"
+                       excludes="$excludes --exclude=/xonotic-osx-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.osx"
+                       excludes="$excludes --exclude=/xonotic-linux64-*"
+                       excludes="$excludes --exclude=/fteqcc/fteqcc.linux64"
+                       ;;
+               *)
+                       echo >&2 "WARNING: Could not detect architecture - downloading all architectures"
+                       ;;
+       esac
+fi
 
 rsync $options $excludes "$url" "$target"