bug 5986 - Configure jenkins to spit out mac .app

https://bugzilla.icculus.org/show_bug.cgi?id=5986
Created make-macosx-app.sh to handle manually creating an app bundle from other scripts.
Updated make-macosx.sh to create bundle with make-macosx-app.sh (TODO: make-macosx-ub.sh support).
Updated Makefile to create bundle with make-macosx-app.sh and zip up the resulting ioquake3.app if ARCHIVE is defined.
This commit is contained in:
jeremiah sypult 2013-07-18 00:11:10 -05:00
parent 3cd8b49713
commit 260233d4ec
5 changed files with 361 additions and 62 deletions

View file

@ -1,6 +1,9 @@
#!/bin/bash
UNAME=`uname`
MASTER_DIR=`dirname $0`
BUILD_DEFAULT="release"
cd ${MASTER_DIR}
if [ "$OPTIONS" = "all_options" ];
@ -9,7 +12,20 @@ then
export USE_FREETYPE=1
fi
CORES=`awk '/^processor/ { N++} END { print N }' /proc/cpuinfo`
if [ "$UNAME" == "Darwin" ]; then
CORES=`sysctl -n hw.ncpu`
elif [ "$UNAME" == "Linux" ]; then
CORES=`awk '/^processor/ { N++} END { print N }' /proc/cpuinfo`
fi
echo "platform : ${UNAME}"
echo "cores : ${CORES}"
if [ "${BUILD_TYPE}" == "" ]; then
BUILD_TYPE="${BUILD_DEFAULT}"
echo "build type : defaulting to ${BUILD_TYPE}"
else
echo "build type : ${BUILD_TYPE}"
fi
make -j${CORES} distclean ${BUILD_TYPE}