Blame once/install.bat

4721ce
@echo off
4721ce
6e8f88
if "!%SYSROOT%!"=="!!"          goto sysroot_missing
60b4ac
if "!%SYSROOT%!"=="!@SYSROOT@!" goto sysroot_invalid
b864e2
4721ce
pushd "%~dp0"
4721ce
4721ce
set shell_sysroot=%cd%
4721ce
4721ce
echo.
4721ce
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
2f6204
echo this is the @product@ installation script
4721ce
echo SYSROOT currently set to %SYSROOT%
4721ce
echo shell_sysroot set to %shell_sysroot%
acd2fc
echo admins_group_emulates_root set to %admins_group_emulates_root%
4721ce
echo press any key to continue with installation, or CTRL-C to abort
4721ce
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
4721ce
echo.
4721ce
4721ce
@pause
4721ce
7796b9
start bin\ntctty.exe --sysroot %shell_sysroot% --exec /bin/mintty -d -h error --window max --exec /bin/bash install.sh
4721ce
4721ce
popd
4721ce
4721ce
exit
b864e2
b864e2
:sysroot_missing
b864e2
b864e2
echo.
b864e2
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
b864e2
echo this is the @product@ installation script
b864e2
echo SYSROOT not set! Will do nothing...
b864e2
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
b864e2
echo.
b864e2
b864e2
@pause
b864e2
b864e2
exit /B 1
6e8f88
6e8f88
6e8f88
:sysroot_invalid
6e8f88
6e8f88
echo.
6e8f88
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6e8f88
echo this is the @product@ installation script
6e8f88
echo SYSROOT is invalid! Will do nothing...
6e8f88
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6e8f88
echo.
6e8f88
6e8f88
@pause
6e8f88
6e8f88
exit /B 1