From 85ebe06965158be9d57e21f8b8a26bb0178f5f76 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Tue, 8 Nov 2011 18:54:21 +0000 Subject: [PATCH] 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 --- tools/build_projects.bat | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tools/build_projects.bat b/tools/build_projects.bat index ef3c23f29..6c0739eca 100644 --- a/tools/build_projects.bat +++ b/tools/build_projects.bat @@ -1,8 +1,10 @@ @echo off +set RC= setlocal if "%1" == "" ( echo ERROR: Please specify a build target: Debug or Release +set ERRORLEVEL=1 goto end ) @@ -29,8 +31,15 @@ echo Building %1 target for all projects... "%VCINSTALLDIR%\vcpackages\vcbuild.exe" ..\cef.sln "%1|Win32" ) else ( echo ERROR: Cannot find Visual Studio builder -goto end +set ERRORLEVEL=1 ) :end -endlocal +endlocal & set RC=%ERRORLEVEL% +goto omega + +:returncode +exit /B %RC% + +:omega +call :returncode %RC%