2013-12-30 12:59:42 +01:00
|
|
|
@echo off
|
|
|
|
|
2016-08-09 14:21:23 +02:00
|
|
|
for /f "tokens=*" %%a in (
|
|
|
|
'cscript.exe /nologo "%~dp0\vs_cmdline.vbs" %*'
|
|
|
|
) do (
|
|
|
|
SET vs_cmd=%%a
|
|
|
|
)
|
2013-12-30 12:59:42 +01:00
|
|
|
|
|
|
|
IF NOT DEFINED vs_cmd (
|
|
|
|
echo Visual Studio not found
|
|
|
|
EXIT /b 1
|
|
|
|
)
|
|
|
|
|
|
|
|
SET vs_cmd_no_quotes="%vs_cmd:"=%"
|
|
|
|
IF "vs_cmd_no_quotes" == "" (
|
|
|
|
echo Visual Studio not found
|
|
|
|
EXIT /b 2
|
|
|
|
)
|
|
|
|
|
2016-08-09 14:21:23 +02:00
|
|
|
%vs_cmd%
|
2013-12-30 12:59:42 +01:00
|
|
|
if %ERRORLEVEL% GEQ 1 (
|
|
|
|
echo Build with Visual Studio FAILED
|
2016-08-09 14:21:23 +02:00
|
|
|
EXIT /b 3
|
2013-12-30 12:59:42 +01:00
|
|
|
)
|
|
|
|
|
2016-08-09 14:21:23 +02:00
|
|
|
EXIT /b 0
|