0031568: Data Exchange - invalid model produced after STEP import
[occt.git] / samples / qt / FuncDemo / run.sh
CommitLineData
6396eacb 1#!/bin/bash
2
3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
e3368235 5if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
6396eacb 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/FuncDemo.app/Contents/MacOS"
12 else
13 BIN_DIR="${aSamplePath}/build/Release/FuncDemo.app/Contents/MacOS"
14 fi
15else
16 BIN_DIR="${aSamplePath}/${STATION}/bin${CASDEB}"
17fi
18
19PATH="${BIN_DIR}:${PATH}"
20export PATH
21
22if test ! -r "${BIN_DIR}/FuncDemo"; then
23 echo "Executable \"${BIN_DIR}/FuncDemo\" not found."
24 if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
25 echo "Probably you don't compile the application. Build it with Xcode."
26 else
27 echo "Probably you don't compile the application. Execute \"make\"."
28 fi
29 exit 1
30fi
31
32${BIN_DIR}/FuncDemo