]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/rsync-updater/update-xonotic.bat
fix the copying of rsync.exe and stuff
[xonotic/xonotic.git] / misc / tools / rsync-updater / update-xonotic.bat
index 658a89f4037bdd4609b4bf7dc00e49fac764746f..08ab5d8d16082b20d877613ff6144b6942326325 100644 (file)
@@ -2,6 +2,10 @@
 \r
 cd %~dp0\r
 \r
+del /s /y %TEMP%\xonotic-rsync-updater\r
+mkdir %TEMP%\xonotic-rsync-updater\r
+for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+\r
 set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
 \r
 if exist Xonotic-low goto xonoticlow\r
@@ -67,6 +71,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
@@ -75,7 +80,7 @@ set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx
 \r
 if "%ProgramFiles(x86)%" == "" goto bit32\r
 :bit64\r
-       if "%XONOTIC_INCLUDE_32BIT%" != "" goto endbit\r
+       if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit\r
        set excludes=%excludes% --exclude=/xonotic.exe\r
        set excludes=%excludes% --exclude=/xonotic-sdl.exe\r
        set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
@@ -92,8 +97,12 @@ if "%ProgramFiles(x86)%" == "" goto bit32
        goto endbit\r
 :endbit\r
 \r
-rsync %options% %excludes% %url% %target%\r
-chmod -R a+x %target%\r
+del /s /y %TEMP%\xonotic-rsync-updater\r
+mkdir %TEMP%\xonotic-rsync-updater\r
+for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\rsync %options% %excludes% %url% %target%\r
+%TEMP%\xonotic-rsync-updater\chmod -R a+x %target%\r
 \r
 :end\r
+del /s /y %TEMP%\xonotic-rsync-updater\r
 pause\r