From 8c5c7a7fb946332ec019bde977a99b6a04d31164 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 28 Jan 2012 17:20:38 +0100 Subject: [PATCH] more windows fixes --- misc/tools/rsync-updater/update-xonotic.bat | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/misc/tools/rsync-updater/update-xonotic.bat b/misc/tools/rsync-updater/update-xonotic.bat index b51303e5..38dbeccc 100644 --- a/misc/tools/rsync-updater/update-xonotic.bat +++ b/misc/tools/rsync-updater/update-xonotic.bat @@ -1,11 +1,16 @@ @echo off +if "%1" == "did-copy" goto copied cd %~dp0 - del /s /q %TEMP%\xonotic-rsync-updater mkdir %TEMP%\xonotic-rsync-updater -for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\ +for %%f in (*.exe *.dll *.bat) do copy /b %%f %TEMP%\xonotic-rsync-updater\ +%TEMP%\xonotic-rsync-updater\update-xonotic did-copy +del /s /q %TEMP%\xonotic-rsync-updater +pause +exit +:copied set options=-Prtzil --executability --delete-after --delete-excluded --stats if exist Xonotic-low goto xonoticlow @@ -102,5 +107,3 @@ for %%f in (*.exe *.dll) do copy /b %%f %TEMP%\xonotic-rsync-updater\ %TEMP%\xonotic-rsync-updater\chmod -R a+x %target% :end -del /s /q %TEMP%\xonotic-rsync-updater -pause -- 2.39.2