Skip to content

Commit

Permalink
[WIN32] fixed: jenkins doesn't like the rxvt shell so use sh instead.…
Browse files Browse the repository at this point in the history
… Since sh still crashes often when compiling attended we keep using rxvt there.
  • Loading branch information
wsoltys committed Mar 23, 2013
1 parent c4d4916 commit a0f7b47
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
9 changes: 8 additions & 1 deletion project/Win32BuildSetup/BuildSetup.bat
Expand Up @@ -24,6 +24,7 @@ SET buildmode=ask
SET promptlevel=prompt
SET buildmingwlibs=true
SET exitcode=0
SET useshell=rxvt
FOR %%b in (%1, %2, %3, %4, %5) DO (
IF %%b==vs2010 SET comp=vs2010
IF %%b==dx SET target=dx
Expand All @@ -32,6 +33,7 @@ FOR %%b in (%1, %2, %3, %4, %5) DO (
IF %%b==noclean SET buildmode=noclean
IF %%b==noprompt SET promptlevel=noprompt
IF %%b==nomingwlibs SET buildmingwlibs=false
IF %%b==sh SET useshell=sh
)

SET buildconfig=Release (DirectX)
Expand Down Expand Up @@ -147,7 +149,12 @@ IF %comp%==vs2010 (
IF %buildmode%==clean (
ECHO bla>makeclean
)
call buildmingwlibs.bat
rem only use sh to please jenkins
IF %useshell%==sh (
call buildmingwlibs.bat sh
) ELSE (
call buildmingwlibs.bat
)
IF EXIST errormingw (
set DIETEXT="failed to build mingw libs"
goto DIE
Expand Down
30 changes: 24 additions & 6 deletions project/Win32BuildSetup/buildmingwlibs.bat
Expand Up @@ -4,11 +4,29 @@ rem batch file to compile mingw libs via BuildSetup
rem set M$ env
call "%VS100COMNTOOLS%..\..\VC\bin\vcvars32.bat"

rem check for mingw env
IF EXIST ..\BuildDependencies\msys\bin\sh.exe (
rem compiles a bunch of mingw libs and not more
SET opt=sh
IF $%1$==$$ SET opt=rxvt

rem compiles a bunch of mingw libs and not more
IF %opt%==sh (
IF EXIST ..\BuildDependencies\msys\bin\sh.exe (
ECHO starting sh shell
..\BuildDependencies\msys\bin\sh --login /xbmc/project/Win32BuildSetup/buildmingwlibs.sh
GOTO END
) ELSE (
GOTO ENDWITHERROR
)
)
IF EXIST ..\BuildDependencies\msys\bin\rxvt.exe (
ECHO starting rxvt shell
..\BuildDependencies\msys\bin\rxvt -backspacekey  -sl 2500 -sr -fn Courier-12 -tn msys -geometry 120x25 -title "building mingw dlls" -e /bin/sh --login /xbmc/project/Win32BuildSetup/buildmingwlibs.sh
) ELSE (
GOTO END
)
GOTO ENDWITHERROR

:ENDWITHERROR
ECHO bla>errormingw
ECHO mingw environment not found
)
ECHO msys environment not found

:END
ECHO exiting msys environment

0 comments on commit a0f7b47

Please sign in to comment.