0031824: Samples - Code is not displayed in Qt OCCT Overview sample after compilation...
[occt.git] / adm / templates / sample.sh
CommitLineData
6664a9c2 1#!/bin/bash
2
3if [ "$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
a2176e65 11 echo OCCTOverview
6664a9c2 12 echo Tutorial
13fi
14
15
16aCurrentPath="$PWD"
17aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath"; fi; aScriptPath="$PWD";
18
19source "${aScriptPath}/env.sh" "$2"
20
21if test "${QTDIR}" == ""; then
22 if [ -d "$QTDIR%\qml" ];
23 then export QML2_IMPORT_PATH="$QTDIR\qml";
24 fi
25fi
26
27export "EXE_PATH=$CSF_OCCTBinPath/$1"
28
29if [ ! -f "$EXE_PATH" ]; then
30 echo "Executable \"$EXE_PATH\" not found."
31 echo "Probably you didn't compile the application."
32 exit 1
33fi
34
c4d4fcea 35export CSF_OCCTOverviewSampleCodePath="${CSF_OCCTSamplesPath}/OCCTOverview/code"
a2176e65 36
6664a9c2 37cd ${aCurrentPath}
c4d4fcea 38"$EXE_PATH"