1
0
mirror of https://gitlab.com/xonotic/xonotic synced 2025-04-07 01:31:22 +00:00

more windows fixes

This commit is contained in:
Rudolf Polzer 2012-01-28 17:20:38 +01:00
parent 82f0d6b547
commit 8c5c7a7fb9

View File

@ -1,11 +1,16 @@
@echo off @echo off
if "%1" == "did-copy" goto copied
cd %~dp0 cd %~dp0
del /s /q %TEMP%\xonotic-rsync-updater del /s /q %TEMP%\xonotic-rsync-updater
mkdir %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 set options=-Prtzil --executability --delete-after --delete-excluded --stats
if exist Xonotic-low goto xonoticlow 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% %TEMP%\xonotic-rsync-updater\chmod -R a+x %target%
:end :end
del /s /q %TEMP%\xonotic-rsync-updater
pause