From fc0b0818366c087afa37a875c3ccfda67c4d2718 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 26 Jan 2012 17:42:30 +0100 Subject: [PATCH] env variable XONOTIC_INCLUDE_ALL to download ALL builds, not just your platform (useful for linux/wine testing) --- misc/tools/rsync-updater/update-xonotic.bat | 1 + misc/tools/rsync-updater/update-xonotic.sh | 62 +++++++++++---------- 2 files changed, 33 insertions(+), 30 deletions(-) diff --git a/misc/tools/rsync-updater/update-xonotic.bat b/misc/tools/rsync-updater/update-xonotic.bat index 43d2cc69..ee7fa39e 100644 --- a/misc/tools/rsync-updater/update-xonotic.bat +++ b/misc/tools/rsync-updater/update-xonotic.bat @@ -67,6 +67,7 @@ goto xonotic :endxonotic set excludes= +if not "%XONOTIC_INCLUDE_ALL%" == "" goto endbit set excludes=%excludes% --exclude=/xonotic-linux* set excludes=%excludes% --exclude=/xonotic-osx-* set excludes=%excludes% --exclude=/Xonotic*.app diff --git a/misc/tools/rsync-updater/update-xonotic.sh b/misc/tools/rsync-updater/update-xonotic.sh index d34c7e34..c0b9398a 100755 --- a/misc/tools/rsync-updater/update-xonotic.sh +++ b/misc/tools/rsync-updater/update-xonotic.sh @@ -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" -- 2.39.2