0029083: Samples - specify multiple Make jobs within make.sh for Qt sample
[occt.git] / samples / qt / IESample / run.sh
... / ...
CommitLineData
1#!/bin/bash
2
3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
5if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
6cd $aSamplePath
7
8aSystem=`uname -s`
9if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
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
18
19CSF_ResourcesDefaults="${RES_DIR}"
20CSF_IEResourcesDefaults="${RES_DIR}"
21
22PATH="${BIN_DIR}:${PATH}"
23
24export CSF_IEResourcesDefaults CSF_ResourcesDefaults
25export PATH
26
27if test ! -r "${BIN_DIR}/IESample"; then
28 echo "Executable \"${BIN_DIR}/IESample\" not found."
29 if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
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
35fi
36
37${BIN_DIR}/IESample