| 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 | |
| 9 | if [ -e "${aSamplePath}/../../../env.sh" ]; then |
| 10 | source "${aSamplePath}/../../../env.sh"; |
| 11 | fi |
| 12 | |
| 13 | if test "${QT_DIR}" == ""; then |
| 14 | echo "Environment variable \"QT_DIR\" 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=${QT_DIR}/bin:${PATH} |