@echo off\r
\r
+if "%1" == "did-copy" goto copied\r
cd %~dp0\r
-\r
del /s /q %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
+for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\\r
+%TEMP%\xonotic-rsync-updater\update-xonotic did-copy\r
+del /s /q %TEMP%\xonotic-rsync-updater\r
+pause\r
+exit\r
\r
+:copied\r
set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
\r
if exist Xonotic-low goto xonoticlow\r
%TEMP%\xonotic-rsync-updater\chmod -R a+x %target%\r
\r
:end\r
-del /s /q %TEMP%\xonotic-rsync-updater\r
-pause\r