Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4010 from wsoltys/buildsys3

[WIN32] fixed: exit on build failure with pvr addons
  • Loading branch information...
commit eb75d27c83cb95b3e26b72a34a5dfa7f8d74ba69 2 parents e9167cf + 78de944
@wsoltys wsoltys authored
View
4 project/Win32BuildSetup/BuildSetup.bat
@@ -245,6 +245,10 @@ IF %comp%==vs2010 (
ECHO ------------------------------------------------------------
call buildpvraddons.bat %NET%
+ IF %errorlevel%==1 (
+ set DIETEXT="failed to build pvr addons"
+ goto DIE
+ )
IF EXIST error.log del error.log > NUL
SET build_path=%CD%
View
8 project/Win32BuildSetup/buildpvraddons.bat
@@ -64,6 +64,10 @@ REM build xbmc-pvr-addons.sln
ECHO Building PVR addons
%1 %OPTS_EXE%
+IF %errorlevel%==1 (
+ goto fail
+)
+
REM copy the built pvr addons into ADDONS_DIR
CD "%BUILT_ADDONS_DIR%"
SET ADDONS_DIR=..\..\..\..\Win32BuildSetup\BUILD_WIN32\Xbmc\xbmc-pvr-addons
@@ -91,6 +95,10 @@ GOTO done
ECHO No git command available. Unable to fetch and build xbmc-pvr-addons.
SET EXITCODE=1
+:fail
+ECHO Failed to build one or more pvr addons
+SET EXITCODE=1
+
:done
SET GITEXE=
EXIT /B %EXITCODE%
Please sign in to comment.
Something went wrong with that request. Please try again.