]> git.xonotic.org Git - xonotic/xonotic.git/blob - misc/tools/rsync-updater/update-xonotic.bat
xonotic autobuild downloader: add the base scripts
[xonotic/xonotic.git] / misc / tools / rsync-updater / update-xonotic.bat
1 @echo off\r
2 \r
3 set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
4 \r
5 if exist Xonotic-low goto xonoticlow\r
6 if exist Xonotic-high goto xonotichigh\r
7 goto xonotic\r
8 :xonoticlow\r
9 set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/\r
10 set target=Xonotic-low/\r
11 goto endxonotic\r
12 :xonotichigh\r
13 set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/\r
14 set target=Xonotic-high/\r
15 goto endxonotic\r
16 :xonotic\r
17 set url=rsync://beta.xonotic.org/autobuild-Xonotic/\r
18 set target=Xonotic/\r
19 goto endxonotic\r
20 :endxonotic\r
21 \r
22 set excludes=\r
23 set excludes=%excludes% --exclude=/xonotic-linux*\r
24 set excludes=%excludes% --exclude=/xonotic-osx-*\r
25 set excludes=%excludes% --exclude=/Xonotic*.app\r
26 set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*\r
27 set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx\r
28 \r
29 if "%ProgramFiles(x86)%" == "" goto bit32\r
30 :bit64\r
31 set excludes=%excludes% --exclude=/xonotic.exe\r
32 set excludes=%excludes% --exclude=/xonotic-sdl.exe\r
33 set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
34 set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe\r
35 set excludes=%excludes% --exclude=/bin32\r
36 set excludes=%excludes% --exclude=/*.dll\r
37 goto endbit\r
38 :bit32\r
39 set excludes=%excludes% --exclude=/xonotic-x64.exe\r
40 set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe\r
41 set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe\r
42 set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe\r
43 set excludes=%excludes% --exclude=/bin64\r
44 goto endbit\r
45 :endbit\r
46 \r
47 rsync %options% %excludes% %url% %target%\r
48 chmod -R a+x %target%\r
49 pause\r