0029368: Incorrect intersection state of the intersection point of two 2d curves
[occt.git] / samples / qt / Tutorial / make.sh
index 1f7b3ac..2a41692 100644 (file)
@@ -1,7 +1,14 @@
-#!/bin/sh
+#!/bin/bash
 
 export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
 export aSamplePath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh"; fi
+if [ -e "${aSamplePath}/env.sh" ]; then source "${aSamplePath}/env.sh" $*; fi
 cd $aSamplePath
 qmake Tutorial.pro
 cd $aSamplePath
 qmake Tutorial.pro
-make
+if [ "$(uname -s)" != "Darwin" ] || [ "$MACOSX_USE_GLX" == "true" ]; then
+  aNbJobs="$(getconf _NPROCESSORS_ONLN)"
+  if [ "${CASDEB}" == "d" ]; then
+    make -j $aNbJobs debug
+  else
+    make -j $aNbJobs release
+  fi
+fi