mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Add jenkins-ci-build.sh
This commit is contained in:
parent
e2f520e001
commit
3ffefb663c
1 changed files with 25 additions and 0 deletions
25
jenkins-ci-build.sh
Executable file
25
jenkins-ci-build.sh
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/bin/bash
|
||||
|
||||
MASTER_DIR=`dirname $0`
|
||||
cd ${MASTER_DIR}
|
||||
|
||||
if [ "$OPTIONS" = "all_options" ];
|
||||
then
|
||||
export USE_CODEC_VORBIS=1
|
||||
export USE_FREETYPE=1
|
||||
fi
|
||||
|
||||
if [ "$PLATFORM" = "mingw32" ];
|
||||
then
|
||||
MAKE=./cross-make-mingw.sh
|
||||
else
|
||||
MAKE=make
|
||||
fi
|
||||
|
||||
CORES=`awk '/^processor/ { N++} END { print N }' /proc/cpuinfo`
|
||||
|
||||
# Default Build
|
||||
($MAKE -j${CORES} clean ${BUILD_TYPE})
|
||||
SUCCESS=$?
|
||||
|
||||
exit ${SUCCESS}
|
Loading…
Reference in a new issue