0023124: Porting products samples on OCCT 6.5.3
[occt.git] / samples / qt / Tutorial / run.sh
CommitLineData
7fd59977 1#!/bin/sh
2
7a53e886 3export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
9220e785 4if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
7a53e886 5cd $aSamplePath
7fd59977 6
7a53e886 7host=`uname -s`
7fd59977 8STATION=$host
9
7a53e886 10RES_DIR="${aSamplePath}/res"
11BIN_DIR="${aSamplePath}/${STATION}/bin"
7fd59977 12
13CSF_ResourcesDefaults="${RES_DIR}"
7a53e886 14CSF_TutorialResourcesDefaults="${RES_DIR}"
7fd59977 15
16PATH="${BIN_DIR}:${PATH}"
17
7a53e886 18export CSF_TutorialResourcesDefaults CSF_ResourcesDefaults
19export PATH
7fd59977 20
21if test ! -r "${BIN_DIR}/Tutorial"; then
22 echo "Executable \"${BIN_DIR}/Tutorial\" not found."
23 echo "Probably you don't compile the application. Execute \"make\"."
24 exit 1
25fi
26
27${BIN_DIR}/Tutorial