2016-09-06 15:31:41 -04:00
|
|
|
:: Usage:
|
2016-11-03 03:32:15 -04:00
|
|
|
:: call env-msys.bat [reinstall|clean]
|
2016-09-06 15:31:41 -04:00
|
|
|
|
|
|
|
:: Initialize environment
|
|
|
|
call "%~dp0env.bat"
|
|
|
|
if errorlevel 1 goto error_env
|
|
|
|
|
|
|
|
set EnvMSYSPath=%EnvRootPath%\msys
|
|
|
|
|
|
|
|
call "%~dp0tools\prepare-msys.bat" %1
|
2017-03-02 00:52:18 -05:00
|
|
|
if errorlevel 1 exit /B %ERRORLEVEL%
|
|
|
|
|
|
|
|
set EnvMSYSSH=%EnvMSYSPath%\msys\1.0\bin\sh.exe
|
|
|
|
if not exist "%EnvMSYSSH%" if errorlevel 1 goto error_env
|
|
|
|
|
|
|
|
set EnvMSYSCmd="%EnvMSYSSH%" --login -i -c
|
|
|
|
|
|
|
|
exit /B 0
|
2016-09-06 15:31:41 -04:00
|
|
|
|
|
|
|
:error_env
|
|
|
|
echo Failed to initialize environment.
|
|
|
|
exit /B 1
|