]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/rsync-updater/update-to-autobuild.bat
Update rsync scripts and README
[xonotic/xonotic.git] / misc / tools / rsync-updater / update-to-autobuild.bat
old mode 100644 (file)
new mode 100755 (executable)
index 9d6cbf1..bfa0b49
@@ -10,28 +10,35 @@ exit
 \r
 :copied\r
 \r
+set /p choice=This script will DELETE any custom files in the Xonotic folder. Do you want to continue [Y/N]?\r
+if /i not "%choice%" == "Y" goto end\r
+\r
 set buildtype=release\r
 if "%~n0" == "update-to-autobuild" set buildtype=autobuild\r
 \r
 set options=-Prtzil --executability --delete-after --delete-excluded --stats\r
 \r
-if exist Xonotic-low goto xonoticlow\r
-if exist Xonotic-high goto xonotichigh\r
 if exist ..\..\..\.git goto xonoticdatagit\r
+if exist Xonotic goto xonoticswitchtonormal\r
+if exist Xonotic-high goto xonoticswitchtohigh\r
 if exist ..\..\..\data goto xonoticdata\r
 goto xonotic\r
-:xonoticlow\r
-       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
-       set target=Xonotic-low/\r
-       goto endxonotic\r
-:xonotichigh\r
-       set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
-       set target=Xonotic-high/\r
-       goto endxonotic\r
 :xonoticdatagit\r
        echo NOTE: this is a git repository download. Using the regular update method.\r
        ..\..\..\all update\r
        goto end\r
+:xonoticswitchtohigh\r
+       set PATH=misc\tools\rsync-updater;%PATH%\r
+       cd ..\..\..\r
+       if exist misc\tools\rsync-updater\rsync.exe goto xonoticdatahighfuzzy\r
+       echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
+       goto end\r
+:xonoticswitchtonormal\r
+       set PATH=misc\tools\rsync-updater;%PATH%\r
+       cd ..\..\..\r
+       if exist misc\tools\rsync-updater\rsync.exe goto xonoticdatanormalfuzzy\r
+       echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
+       goto end\r
 :xonoticdata\r
        if exist ..\..\..\misc\tools\rsync-updater\rsync.exe goto xonoticdatarsync\r
        echo FATAL: rsync not in misc\tools\rsync-updater. This update script cannot be used.\r
@@ -39,21 +46,12 @@ goto xonotic
 :xonoticdatarsync\r
        set PATH=misc\tools\rsync-updater;%PATH%\r
        cd ..\..\..\r
-       if exist data\xonotic-rsync-data-low.pk3 goto xonoticdatalow\r
-       if exist data\xonotic-*-data-low.pk3 goto xonoticdatalowfuzzy\r
        if exist data\xonotic-rsync-data-high.pk3 goto xonoticdatahigh\r
        if exist data\xonotic-*-data-high.pk3 goto xonoticdatahighfuzzy\r
        if exist data\xonotic-rsync-data.pk3 goto xonoticdatanormal\r
        if exist data\xonotic-*-data.pk3 goto xonoticdatanormalfuzzy\r
        echo FATAL: unrecognized Xonotic build. This update script cannot be used.\r
        goto end\r
-:xonoticdatalow\r
-               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
-               goto endxonoticdata\r
-:xonoticdatalowfuzzy\r
-               set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-low/\r
-               set options=%options% -y\r
-               goto endxonoticdata\r
 :xonoticdatahigh\r
                set url=rsync://beta.xonotic.org/%buildtype%-Xonotic-high/\r
                goto endxonoticdata\r
@@ -89,7 +87,6 @@ if "%ProgramFiles(x86)%" == "" goto bit32
 :bit64\r
        if not "%XONOTIC_INCLUDE_32BIT%" == "" goto endbit\r
        set excludes=%excludes% --exclude=/xonotic-x86.exe\r
-       set excludes=%excludes% --exclude=/xonotic-x86-wgl.exe\r
        set excludes=%excludes% --exclude=/xonotic-x86-dedicated.exe\r
        set excludes=%excludes% --exclude=/gmqcc/gmqcc.exe\r
        set excludes=%excludes% --exclude=/bin32\r
@@ -97,7 +94,6 @@ if "%ProgramFiles(x86)%" == "" goto bit32
        goto endbit\r
 :bit32\r
        set excludes=%excludes% --exclude=/xonotic.exe\r
-       set excludes=%excludes% --exclude=/xonotic-wgl.exe\r
        set excludes=%excludes% --exclude=/xonotic-dedicated.exe\r
        set excludes=%excludes% --exclude=/gmqcc/gmqcc-x64.exe\r
        set excludes=%excludes% --exclude=/bin64\r