summaryrefslogtreecommitdiff
path: root/jenkins-ci-build.sh
diff options
context:
space:
mode:
authorTim Angus <tim.angus@roslin.ed.ac.uk>2013-03-21 15:49:47 +0000
committerTim Angus <tim@ngus.net>2013-03-22 18:52:19 +0000
commit53a4d7a4e3ed24aac99038e2ade334afa7c4246c (patch)
tree50e567be063c44ac6d61973f7f558f8fdd7a09ce /jenkins-ci-build.sh
parente21451f44ce38a2ee6e3d525ef4f7e314092a40e (diff)
Add jenkins-ci-build.sh
Diffstat (limited to 'jenkins-ci-build.sh')
-rwxr-xr-xjenkins-ci-build.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/jenkins-ci-build.sh b/jenkins-ci-build.sh
new file mode 100755
index 00000000..eb09a37a
--- /dev/null
+++ b/jenkins-ci-build.sh
@@ -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}