mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:16:30 +00:00
changed robocopy return code
This commit is contained in:
+11
-10
@@ -1,21 +1,22 @@
|
|||||||
echo Make dirs, copy init dlls
|
echo Make dirs, copy init dlls
|
||||||
pushd %~dp0..
|
REM Save the current directory
|
||||||
|
set CURRENT_DIR=%cd%
|
||||||
|
|
||||||
|
REM Change to the parent directory of the current location
|
||||||
|
cd /d %~dp0..
|
||||||
|
|
||||||
|
REM Remove and recreate the dist-dlls and dist-azaion directories
|
||||||
if exist dist-dlls rmdir dist-dlls /s /q
|
if exist dist-dlls rmdir dist-dlls /s /q
|
||||||
mkdir dist-dlls
|
mkdir dist-dlls
|
||||||
if exist dist-azaion rmdir dist-azaion /s /q
|
if exist dist-azaion rmdir dist-azaion /s /q
|
||||||
mkdir dist-azaion
|
mkdir dist-azaion
|
||||||
|
|
||||||
echo Copying shared libs
|
echo Copying shared libs
|
||||||
|
|
||||||
|
REM Copy the shared libs from the source location to dist-dlls
|
||||||
robocopy "C:\\share" "dist-dlls" "*"
|
robocopy "C:\\share" "dist-dlls" "*"
|
||||||
set RC=%ERRORLEVEL%
|
|
||||||
|
|
||||||
if %RC% GEQ 8 (
|
REM Return to the original directory
|
||||||
echo Robocopy failed with code %RC%.
|
cd /d %CURRENT_DIR%
|
||||||
popd
|
|
||||||
exit /b %RC%
|
|
||||||
)
|
|
||||||
|
|
||||||
echo Robocopy succeeded with code %RC%.
|
echo Init script completed.
|
||||||
popd
|
|
||||||
exit /b 0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user