Files
annotations/build/init.cmd
T
2025-05-07 16:12:06 +03:00

25 lines
538 B
Batchfile

echo Make dirs, copy init dlls
pushd %~dp0..
if exist dist-dlls rmdir dist-dlls /s /q
mkdir dist-dlls
if exist dist-azaion rmdir dist-azaion /s /q
mkdir dist-azaion
echo Copying shared libs
robocopy "C:\\share" "dist-dlls" "*"
set RC=%ERRORLEVEL%
if %RC% EQU 1 (
echo All files copied successfully.
popd
exit /b 1
) else if %RC% LSS 8 (
echo Robocopy returned %RC% (acceptable non-error code), but not perfect copy.
popd
exit /b 0
) else (
echo Robocopy failed with code %RC%.
popd
exit /b %RC%
)