Skip to content

Commit

Permalink
Merge pull request #4010 from wsoltys/buildsys3
Browse files Browse the repository at this point in the history
[WIN32] fixed: exit on build failure with pvr addons
  • Loading branch information
wsoltys committed Jan 21, 2014
2 parents e9167cf + 78de944 commit eb75d27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project/Win32BuildSetup/BuildSetup.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ IF %comp%==vs2010 (


ECHO ------------------------------------------------------------ ECHO ------------------------------------------------------------
call buildpvraddons.bat %NET% call buildpvraddons.bat %NET%
IF %errorlevel%==1 (
set DIETEXT="failed to build pvr addons"
goto DIE
)


IF EXIST error.log del error.log > NUL IF EXIST error.log del error.log > NUL
SET build_path=%CD% SET build_path=%CD%
Expand Down
8 changes: 8 additions & 0 deletions project/Win32BuildSetup/buildpvraddons.bat
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ REM build xbmc-pvr-addons.sln
ECHO Building PVR addons ECHO Building PVR addons
%1 %OPTS_EXE% %1 %OPTS_EXE%


IF %errorlevel%==1 (
goto fail
)

REM copy the built pvr addons into ADDONS_DIR REM copy the built pvr addons into ADDONS_DIR
CD "%BUILT_ADDONS_DIR%" CD "%BUILT_ADDONS_DIR%"
SET ADDONS_DIR=..\..\..\..\Win32BuildSetup\BUILD_WIN32\Xbmc\xbmc-pvr-addons SET ADDONS_DIR=..\..\..\..\Win32BuildSetup\BUILD_WIN32\Xbmc\xbmc-pvr-addons
Expand Down Expand Up @@ -91,6 +95,10 @@ GOTO done
ECHO No git command available. Unable to fetch and build xbmc-pvr-addons. ECHO No git command available. Unable to fetch and build xbmc-pvr-addons.
SET EXITCODE=1 SET EXITCODE=1


:fail
ECHO Failed to build one or more pvr addons
SET EXITCODE=1

:done :done
SET GITEXE= SET GITEXE=
EXIT /B %EXITCODE% EXIT /B %EXITCODE%

0 comments on commit eb75d27

Please sign in to comment.