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