6396eacb |
1 | #!/bin/bash |
2 | |
3 | export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
4 | |
5 | if [ -e "custom.sh" ]; then |
e3368235 |
6 | source "custom.sh" $*; |
6396eacb |
7 | fi |
8 | |
9 | if [ -e "${aSamplePath}/../../../env.sh" ]; then |
e3368235 |
10 | source "${aSamplePath}/../../../env.sh" $*; |
6396eacb |
11 | fi |
12 | |
e3368235 |
13 | if [ "${QTDIR}" != "" ]; then |
14 | export PATH=${QTDIR}/bin:${PATH} |
15 | else |
16 | aQMakePath=`which qmake` |
17 | echo "Environment variable \"QTDIR\" not defined.. Define it in \"custom.sh\" script." |
18 | if [ -x "$aQMakePath" ]; then |
19 | echo "qmake from PATH will be used instead." |
20 | else |
21 | exit 1 |
22 | fi |
6396eacb |
23 | fi |
24 | |
25 | host=`uname -s` |
26 | export STATION=$host |