0031388: Data Exchange - support kinematics data in STEP format
[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 [ "${QTDIR}" != "" ]; then
14 export PATH=${QTDIR}/bin:${PATH}
15else
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
23fi
24
25host=`uname -s`
26export STATION=$host
27export RES_DIR=${aSamplePath}/${STATION}/res