RetroShare/build_scripts/Windows/build/clean.bat

24 lines
449 B
Batchfile
Raw Normal View History

@echo off
setlocal
:: Initialize environment
call "%~dp0..\env.bat"
if errorlevel 1 goto error_env
call "%EnvPath%\env.bat"
if errorlevel 1 goto error_env
2018-06-17 11:51:58 -04:00
2022-02-07 11:27:42 -05:00
call "%~dp0env.bat" clean %*
2018-06-17 11:51:58 -04:00
if errorlevel 2 exit /B 2
if errorlevel 1 goto error_env
if not exist "%RsBuildPath%" exit /B 0
call "%ToolsPath%\remove-dir.bat" "%RsBuildPath%"
exit /B %ERRORLEVEL%
:error_env
echo Failed to initialize environment.
endlocal
exit /B 1