qxl-wddm-dod/Tools/vs_run.bat

27 lines
377 B
Batchfile
Raw Normal View History

2013-12-30 12:59:42 +01:00
@echo off
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
)
%vs_cmd%
2013-12-30 12:59:42 +01:00
if %ERRORLEVEL% GEQ 1 (
echo Build with Visual Studio FAILED
EXIT /b 3
2013-12-30 12:59:42 +01:00
)
EXIT /b 0