3 export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4 if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
8 if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
9 if [ "${CASDEB}" == "d" ]; then
10 BIN_DIR="${aSamplePath}/build/Debug/Tutorial.app/Contents/MacOS"
12 BIN_DIR="${aSamplePath}/build/Release/Tutorial.app/Contents/MacOS"
15 BIN_DIR="${aSamplePath}/${STATION}/bin${CASDEB}"
18 CSF_ResourcesDefaults="${RES_DIR}"
19 CSF_TutorialResourcesDefaults="${RES_DIR}"
21 PATH="${BIN_DIR}:${PATH}"
23 export CSF_TutorialResourcesDefaults CSF_ResourcesDefaults
26 if test ! -r "${BIN_DIR}/Tutorial"; then
27 echo "Executable \"${BIN_DIR}/Tutorial\" not found."
28 if [ "$aSystem" == "Darwin" ] && [ "$MACOSX_USE_GLX" != "true" ]; then
29 echo "Probably you don't compile the application. Build it with Xcode."
31 echo "Probably you don't compile the application. Execute \"make\"."