summaryrefslogtreecommitdiff
path: root/xmake/scripts/update-script.bat
blob: 91c5b8f3c22ad7ec712eb0aea6d44cc931703a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off

echo Removing old files
cd /d "%~1"
del actions core includes languages modules platforms plugins repository rules scripts templates themes /S /Q /F >nul
echo Copying from temp directory to "%~1"

if exist "%WINDIR%\System32\Robocopy.exe" (
    robocopy "%~2" "%~1" /S /IS /NFL /NDL /NJH /NJS >nul
) else (
    if exist "%WINDIR%\SysWOW64\Robocopy.exe" (
        robocopy "%~2" "%~1" /S /IS /NFL /NDL /NJH /NJS >nul
    ) else (
        xcopy "%~2" "%~1" /S /Y /Q >nul 
    )
)