4b3541c6 |
1 | #!/bin/bash |
2 | |
3 | export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
4 | |
5 | if [ -e "custom.sh" ]; then |
6 | source "custom.sh"; |
7 | fi |
8 | |
d26375e2 |
9 | if [ -e "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh" ]; then |
10 | source "@INSTALL_DIR_ABSOLUTE@/@INSTALL_DIR_SCRIPT@/env.sh"; |
4b3541c6 |
11 | fi |
12 | |
13 | if test "${QTDIR}" == ""; then |
14 | echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script." |
15 | exit 1 |
16 | fi |
17 | |
18 | host=`uname -s` |
19 | export STATION=$host |
20 | export RES_DIR=${aSamplePath}/${STATION}/res |
21 | |
22 | export PATH=${QTDIR}/bin:${PATH} |
a2176e65 |
23 | |
24 | export "CSF_OCCTOverviewSampleCodePath=${aSamplePath}/../../OCCTOverview/code" |