]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
rsync-updater: make sure the chmod command after the rsync will actually work :P
authorRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 14:52:29 +0000 (15:52 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 26 Jan 2012 14:52:29 +0000 (15:52 +0100)
misc/tools/rsync-updater/update-xonotic.bat

index fb3972a53c8425c0729029b1b10d7b252fba55fe..43d2cc69ddf42da27c23c192429617b2eaf7f9d8 100644 (file)
@@ -92,8 +92,12 @@ if "%ProgramFiles(x86)%" == "" goto bit32
        goto endbit\r
 :endbit\r
 \r
        goto endbit\r
 :endbit\r
 \r
-rsync %options% %excludes% %url% %target%\r
-chmod -R a+x %target%\r
+del /s %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
+del /s %TEMP%\xonotic-rsync-updater\r
 \r
 :end\r
 pause\r
 \r
 :end\r
 pause\r