200b06ba3e658ca31ec83254f92db8e6260c6216
[occt.git] / samples / qt / IESample / run.sh
1 #!/bin/sh
2
3 export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
5 cd $aSamplePath
6
7 host=`uname -s`
8 STATION=$host
9
10 RES_DIR="${aSamplePath}/res"
11 BIN_DIR="${aSamplePath}/${STATION}/bin"
12
13 CSF_ResourcesDefaults="${RES_DIR}"
14 CSF_IEResourcesDefaults="${RES_DIR}"
15
16 PATH="${BIN_DIR}:${PATH}"
17
18 export CSF_IEResourcesDefaults CSF_ResourcesDefaults
19 export PATH
20
21 if test ! -r "${BIN_DIR}/IESample"; then
22    echo "Executable \"${BIN_DIR}/IESample\" not found."
23    echo "Probably you don't compile the application. Execute \"make\"."
24    exit 1
25 fi
26
27 ${BIN_DIR}/IESample