Skip to content

Commit

Permalink
Add jenkins-ci-build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Angus authored and timangus committed Mar 21, 2013
1 parent e2f520e commit 3ffefb6
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions jenkins-ci-build.sh
Original file line number Diff line number Diff line change
@@ -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}

0 comments on commit 3ffefb6

Please sign in to comment.