0029083: Samples - specify multiple Make jobs within make.sh for Qt sample
[occt.git] / samples / qt / FuncDemo / env.sh
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 [ "${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
23 fi
24
25 host=`uname -s`
26 export STATION=$host