0023448: Fix QT samples for Mac OS X
[occt.git] / samples / qt / IESample / env.sh
CommitLineData
7a53e886 1#!/bin/sh
2
3if [ -e "${aSamplePath}/custom.sh" ]; then source "${aSamplePath}/custom.sh"; fi
90ac6145 4
5if test "${CASROOT}" == ""; then
6 echo "Environment variable \"CASROOT\" not defined. Define it in \"custom.sh\" script."
7 exit 1
8fi
9
10if test "${QTDIR}" == ""; then
11 echo "Environment variable \"QTDIR\" not defined. Define it in \"custom.sh\" script."
12 exit 1
13fi
14
15if test `uname -s` == "Darwin" && test "${WOKHOME}" == ""; then
16 echo "Environment variable \"WOKHOME\" not defined. Define it in \"custom.sh\" script."
17 exit 1
18fi
19
20export PATH=${QTDIR}/bin:${PATH}
21
7a53e886 22source $CASROOT/env.sh
90ac6145 23export CSF_OPT_INC="${CASROOT}/inc:${WOKHOME}/lib:${CSF_OPT_INC}"