0029083: Samples - specify multiple Make jobs within make.sh for Qt sample
[occt.git] / samples / qt / IESample / run.sh
CommitLineData
980d161f 1#!/bin/bash
7fd59977 2
7a53e886 3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
980d161f 4
75744d9c 5if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
7a53e886 6cd $aSamplePath
7fd59977 7
5f9575b3 8aSystem=`uname -s`
dc3fe572 9if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
5f9575b3 10 if [ "${CASDEB}" == "d" ]; then
11 BIN_DIR="${aSamplePath}/build/Debug/IESample.app/Contents/MacOS"
12 else
13 BIN_DIR="${aSamplePath}/build/Release/IESample.app/Contents/MacOS"
14 fi
15else
16 BIN_DIR="${aSamplePath}/${STATION}/bin${CASDEB}"
17fi
7fd59977 18
19CSF_ResourcesDefaults="${RES_DIR}"
20CSF_IEResourcesDefaults="${RES_DIR}"
21
7fd59977 22PATH="${BIN_DIR}:${PATH}"
23
7fd59977 24export CSF_IEResourcesDefaults CSF_ResourcesDefaults
7a53e886 25export PATH
7fd59977 26
27if test ! -r "${BIN_DIR}/IESample"; then
5f9575b3 28 echo "Executable \"${BIN_DIR}/IESample\" not found."
dc3fe572 29 if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
5f9575b3 30 echo "Probably you don't compile the application. Build it with Xcode."
31 else
32 echo "Probably you don't compile the application. Execute \"make\"."
33 fi
34 exit 1
7fd59977 35fi
36
37${BIN_DIR}/IESample