5 set options=-Prtzil --executability --delete-after --delete-excluded --stats
\r
7 if exist Xonotic-low goto xonoticlow
\r
8 if exist Xonotic-high goto xonotichigh
\r
9 if exist ..\..\..\.git goto xonoticdatagit
\r
10 if exist ..\..\..\data goto xonoticdata
\r
13 set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/
\r
14 set target=Xonotic-low/
\r
17 set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/
\r
18 set target=Xonotic-high/
\r
21 echo NOTE: this is a git repository download. Using the regular update method.
\r
25 if exist ..\..\..\misc\tools\rsync-updater\rsync.exe goto xonoticdatarsync
\r
26 echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.
\r
29 set PATH=misc\tools\rsync-updater;%PATH%
\r
31 if exist data\xonotic-rsync-data-low.pk3 goto xonoticdatalow
\r
32 if exist data\xonotic-*-data-low.pk3 goto xonoticdatalowfuzzy
\r
33 if exist data\xonotic-rsync-data-high.pk3 goto xonoticdatahigh
\r
34 if exist data\xonotic-*-data-high.pk3 goto xonoticdatahighfuzzy
\r
35 if exist data\xonotic-rsync-data.pk3 goto xonoticdatanormal
\r
36 if exist data\xonotic-*-data.pk3 goto xonoticdatanormalfuzzy
\r
37 echo FATAL: unrecognized Xonotic build. This update script cannot be used.
\r
40 set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/
\r
42 :xonoticdatalowfuzzy
\r
43 set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/
\r
44 set options=%options% -y
\r
47 set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/
\r
49 :xonoticdatahighfuzzy
\r
50 set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/
\r
51 set options=%options% -y
\r
54 set url=rsync://beta.xonotic.org/autobuild-Xonotic/
\r
56 :xonoticdatanormalfuzzy
\r
57 set url=rsync://beta.xonotic.org/autobuild-Xonotic/
\r
58 set options=%options% -y
\r
64 set url=rsync://beta.xonotic.org/autobuild-Xonotic/
\r
70 set excludes=%excludes% --exclude=/xonotic-linux*
\r
71 set excludes=%excludes% --exclude=/xonotic-osx-*
\r
72 set excludes=%excludes% --exclude=/Xonotic*.app
\r
73 set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*
\r
74 set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx
\r
76 if "%ProgramFiles(x86)%" == "" goto bit32
\r
78 if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit
\r
79 set excludes=%excludes% --exclude=/xonotic.exe
\r
80 set excludes=%excludes% --exclude=/xonotic-sdl.exe
\r
81 set excludes=%excludes% --exclude=/xonotic-dedicated.exe
\r
82 set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe
\r
83 set excludes=%excludes% --exclude=/bin32
\r
84 set excludes=%excludes% --exclude=/*.dll
\r
87 set excludes=%excludes% --exclude=/xonotic-x64.exe
\r
88 set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe
\r
89 set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe
\r
90 set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe
\r
91 set excludes=%excludes% --exclude=/bin64
\r
95 del /s %TEMP%\xonotic-rsync-updater
\r
96 mkdir %TEMP%\xonotic-rsync-updater
\r
97 for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\
\r
98 %TEMP%\xonotic-rsync-updater\rsync %options% %excludes% %url% %target%
\r
99 %TEMP%\xonotic-rsync-updater\chmod -R a+x %target%
\r
100 del /s %TEMP%\xonotic-rsync-updater
\r