From: Rudolf Polzer Date: Fri, 11 Nov 2011 08:23:50 +0000 (+0100) Subject: xonotic autobuild downloader: add the base scripts X-Git-Tag: xonotic-v0.6.0~65 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e12cb1bb443dc1b5a61f445a5a82a96abdbf13f5;p=xonotic%2Fxonotic.git xonotic autobuild downloader: add the base scripts --- diff --git a/misc/tools/rsync-updater/README.txt b/misc/tools/rsync-updater/README.txt new file mode 100644 index 00000000..39d6881b --- /dev/null +++ b/misc/tools/rsync-updater/README.txt @@ -0,0 +1,19 @@ +Windows users: +Double click update-xonotic.bat and wait for the download to complete. + +Linux/OSX users: +Change to this directory in a terminal, then run ./update-xonotic.sh and wait +for the download to complete. + +Redoing this step at a later time will only download the changes since last +time. Note that any changes inside the Xonotic directory will be overwritten. +Do your changes in the directory that has the config.cfg file! + +Secret trick: if you create a directory Xonotic-low in this directory before +running the updater (or later, if you rename the Xonotic directory the updater +created to Xonotic-low), this script will download the low version of Xonotic. +If you create a directory Xonotic-high in this directory before running the +updater (or later, if you rename the Xonotic directory the updater created to +Xonotic-high), it will download the HQ version! If none of the two exists, it +will download regular Xonotic. Only one version of the game can be managed by +this script. diff --git a/misc/tools/rsync-updater/chmod.exe b/misc/tools/rsync-updater/chmod.exe new file mode 100644 index 00000000..052da99c Binary files /dev/null and b/misc/tools/rsync-updater/chmod.exe differ diff --git a/misc/tools/rsync-updater/cyggcc_s-1.dll b/misc/tools/rsync-updater/cyggcc_s-1.dll new file mode 100644 index 00000000..fd5df87a Binary files /dev/null and b/misc/tools/rsync-updater/cyggcc_s-1.dll differ diff --git a/misc/tools/rsync-updater/cygiconv-2.dll b/misc/tools/rsync-updater/cygiconv-2.dll new file mode 100644 index 00000000..e4d7b952 Binary files /dev/null and b/misc/tools/rsync-updater/cygiconv-2.dll differ diff --git a/misc/tools/rsync-updater/cygintl-8.dll b/misc/tools/rsync-updater/cygintl-8.dll new file mode 100644 index 00000000..18c50820 Binary files /dev/null and b/misc/tools/rsync-updater/cygintl-8.dll differ diff --git a/misc/tools/rsync-updater/cygwin1.dll b/misc/tools/rsync-updater/cygwin1.dll new file mode 100644 index 00000000..3db37e7e Binary files /dev/null and b/misc/tools/rsync-updater/cygwin1.dll differ diff --git a/misc/tools/rsync-updater/rsync.exe b/misc/tools/rsync-updater/rsync.exe new file mode 100644 index 00000000..f147bf17 Binary files /dev/null and b/misc/tools/rsync-updater/rsync.exe differ diff --git a/misc/tools/rsync-updater/update-xonotic.bat b/misc/tools/rsync-updater/update-xonotic.bat new file mode 100644 index 00000000..1b02da09 --- /dev/null +++ b/misc/tools/rsync-updater/update-xonotic.bat @@ -0,0 +1,49 @@ +@echo off + +set options=-Prtzil --executability --delete-after --delete-excluded --stats + +if exist Xonotic-low goto xonoticlow +if exist Xonotic-high goto xonotichigh +goto xonotic +:xonoticlow +set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/ +set target=Xonotic-low/ +goto endxonotic +:xonotichigh +set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/ +set target=Xonotic-high/ +goto endxonotic +:xonotic +set url=rsync://beta.xonotic.org/autobuild-Xonotic/ +set target=Xonotic/ +goto endxonotic +:endxonotic + +set excludes= +set excludes=%excludes% --exclude=/xonotic-linux* +set excludes=%excludes% --exclude=/xonotic-osx-* +set excludes=%excludes% --exclude=/Xonotic*.app +set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux* +set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx + +if "%ProgramFiles(x86)%" == "" goto bit32 +:bit64 +set excludes=%excludes% --exclude=/xonotic.exe +set excludes=%excludes% --exclude=/xonotic-sdl.exe +set excludes=%excludes% --exclude=/xonotic-dedicated.exe +set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe +set excludes=%excludes% --exclude=/bin32 +set excludes=%excludes% --exclude=/*.dll +goto endbit +:bit32 +set excludes=%excludes% --exclude=/xonotic-x64.exe +set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe +set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe +set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe +set excludes=%excludes% --exclude=/bin64 +goto endbit +:endbit + +rsync %options% %excludes% %url% %target% +chmod -R a+x %target% +pause diff --git a/misc/tools/rsync-updater/update-xonotic.sh b/misc/tools/rsync-updater/update-xonotic.sh new file mode 100755 index 00000000..4cd2af22 --- /dev/null +++ b/misc/tools/rsync-updater/update-xonotic.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +if ! which rsync >/dev/null; then + echo >&2 "FATAL: rsync not found, please install the rsync package" + exit 1 +fi + +options="-Prtzil --executability --delete-after --delete-excluded --stats" + +if [ -d "Xonotic-low" ]; then + url="rsync://beta.xonotic.org/autobuild-Xonotic-low/" + target="Xonotic-low/" +elif [ -d "Xonotic-high" ]; then + url="rsync://beta.xonotic.org/autobuild-Xonotic-high/" + target="Xonotic-high/" +else + url="rsync://beta.xonotic.org/autobuild-Xonotic/" + target="Xonotic/" +fi + +excludes= +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" + excludes="$excludes --exclude=/xonotic-linux32-*" + excludes="$excludes --exclude=/fteqcc/fteqcc.linux32" + ;; + 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 + +rsync $options $excludes "$url" "$target"