0027344: Configuration, CMake: bugs with detecting third-party products
[occt.git] / samples / qt / Tutorial / 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 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}