0029083: Samples - specify multiple Make jobs within make.sh for Qt sample
[occt.git] / samples / qt / Tutorial / make.sh
CommitLineData
980d161f 1#!/bin/bash
7a53e886 2
3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
e3368235 4if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
7a53e886 5cd $aSamplePath
6qmake Tutorial.pro
dc3fe572 7if [ "$(uname -s)" != "Darwin" ] || [ "$MACOSX_USE_GLX" == "true" ]; then
e3368235 8 aNbJobs="$(getconf _NPROCESSORS_ONLN)"
dc3fe572 9 if [ "${CASDEB}" == "d" ]; then
e3368235 10 make -j $aNbJobs debug
dc3fe572 11 else
e3368235 12 make -j $aNbJobs release
dc3fe572 13 fi
5f9575b3 14fi