0026942: Training material are not built on OCCT installed after building by cmake...
[occt.git] / samples / qt / Tutorial / env.sh
... / ...
CommitLineData
1#!/bin/bash
2
3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
5if [ -e "custom.sh" ]; then
6 source "custom.sh";
7fi
8
9if [ -e "${aSamplePath}/../../../env.sh" ]; then
10 source "${aSamplePath}/../../../env.sh";
11fi
12
13if test "${QTDIR}" == ""; then
14 echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
15 exit 1
16fi
17
18host=`uname -s`
19export STATION=$host
20export RES_DIR=${aSamplePath}/${STATION}/res
21
22export PATH=${QTDIR}/bin:${PATH}