Win: Return non-zero exit status if build_projects.bat fails.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@367 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2011-11-08 18:54:21 +00:00
parent 82ad2b6a0b
commit 85ebe06965
1 changed files with 11 additions and 2 deletions

View File

@ -1,8 +1,10 @@
@echo off @echo off
set RC=
setlocal setlocal
if "%1" == "" ( if "%1" == "" (
echo ERROR: Please specify a build target: Debug or Release echo ERROR: Please specify a build target: Debug or Release
set ERRORLEVEL=1
goto end goto end
) )
@ -29,8 +31,15 @@ echo Building %1 target for all projects...
"%VCINSTALLDIR%\vcpackages\vcbuild.exe" ..\cef.sln "%1|Win32" "%VCINSTALLDIR%\vcpackages\vcbuild.exe" ..\cef.sln "%1|Win32"
) else ( ) else (
echo ERROR: Cannot find Visual Studio builder echo ERROR: Cannot find Visual Studio builder
goto end set ERRORLEVEL=1
) )
:end :end
endlocal endlocal & set RC=%ERRORLEVEL%
goto omega
:returncode
exit /B %RC%
:omega
call :returncode %RC%