# HG changeset patch # User Sebastien Jodogne # Date 1560433825 -7200 # Node ID cd1231292eb6e8bed00c19fd4c85071e12d4d01d # Parent 39bdff8f02470548801eba54d91d2850666343ab build type in holy build box diff -r 39bdff8f0247 -r cd1231292eb6 Resources/holy-build-box-compile.sh --- a/Resources/holy-build-box-compile.sh Thu Jun 13 15:32:35 2019 +0200 +++ b/Resources/holy-build-box-compile.sh Thu Jun 13 15:50:25 2019 +0200 @@ -12,6 +12,11 @@ set -ex +if [ "$1" != "Debug" -a "$1" != "Release" ]; then + echo "Please provide build type: Debug or Release" + exit -1 +fi + ROOT_DIR=`dirname $(readlink -f $0)`/.. mkdir -p ${ROOT_DIR}/holy-build-box @@ -21,6 +26,6 @@ -v ${ROOT_DIR}:/source:ro \ -v ${ROOT_DIR}/holy-build-box:/target:rw \ phusion/holy-build-box-64:2.0.1 \ - bash /source/Resources/holy-build-box-internal.sh + bash /source/Resources/holy-build-box-internal.sh $1 ls -l ${ROOT_DIR}/holy-build-box/ diff -r 39bdff8f0247 -r cd1231292eb6 Resources/holy-build-box-internal.sh --- a/Resources/holy-build-box-internal.sh Thu Jun 13 15:32:35 2019 +0200 +++ b/Resources/holy-build-box-internal.sh Thu Jun 13 15:50:25 2019 +0200 @@ -21,7 +21,7 @@ cp -r /source /tmp/source-writeable cmake /tmp/source-writeable \ - -DCMAKE_BUILD_TYPE=Release -DSTATIC_BUILD=ON \ + -DCMAKE_BUILD_TYPE=$1 -DSTATIC_BUILD=ON \ -DORTHANC_FRAMEWORK_SOURCE=web \ -DCMAKE_INSTALL_PREFIX=/target