f081139a1a973d52779e34757e6d865a22c6f69e
[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 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
21 export PATH=${QTDIR}/bin:${PATH}