]> OCCT Git - occt-wok.git/commitdiff
0023786: Fixed env.sh template
authordbv <dbv@opencascade.com>
Fri, 22 Feb 2013 07:19:34 +0000 (11:19 +0400)
committerdbv <dbv@opencascade.com>
Fri, 22 Feb 2013 07:19:34 +0000 (11:19 +0400)
Correct patch to correspond env.bat logic

src/WOKTclLib/templates/env.sh

index 852ac91a7bb499864e2c07dd49df5fdb015e6e61..4d9e215b43fd657ad4794b853874e6b1b72774cf 100755 (executable)
@@ -5,6 +5,13 @@ aScriptPath=${BASH_SOURCE%/*}; if [ -d "${aScriptPath}" ]; then cd "$aScriptPath
 
 export CASROOT="__CASROOT__"
 
+if [ "${CASROOT}" != "" ] && [ -d "${aScriptPath}/${CASROOT}" ]; then
+  export CASROOT="${aScriptPath}/${CASROOT}"
+fi
+if [ "${CASROOT}" == "" ]; then
+  export CASROOT="${aScriptPath}"
+fi
+
 # Reset values
 export CASDEB=""
 export HAVE_TBB="false";