0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / adm / templates / sample.sh
1 #!/bin/bash
2
3 if [ "$1" == "" ]; then
4   echo Launch selected sample as follows:
5   echo   sample.sh SampleName d
6   echo or to use last sample build configuration:
7   echo   sample.sh SampleName
8   echo available samples:
9   echo    FuncDemo
10   echo    IESample
11   echo    OCCTOverview
12   echo    Tutorial
13 fi
14
15
16 aCurrentPath="$PWD"
17 aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
18
19 source "${aScriptPath}/env.sh" "$2"
20
21 if test "${QTDIR}" == ""; then
22   if [ -d "$QTDIR%\qml" ];
23     then export QML2_IMPORT_PATH="$QTDIR\qml";
24   fi
25 fi
26
27 export "EXE_PATH=$CSF_OCCTBinPath/$1"
28
29 if [ ! -f "$EXE_PATH" ]; then
30   echo "Executable \"$EXE_PATH\" not found."
31   echo "Probably you didn't compile the application."
32   exit 1
33 fi
34
35 export CSF_OCCTOverviewSampleCodePath="${CSF_OCCTSamplesPath}/OCCTOverview/code"
36
37 cd ${aCurrentPath}
38 "$EXE_PATH"