From: dbv Date: Fri, 22 Feb 2013 07:19:34 +0000 (+0400) Subject: 0023786: Fixed env.sh template X-Git-Tag: V6_7_1~66 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=c031f678ae9c3fca58ee0e06416d58132ef5f673;p=occt-wok.git 0023786: Fixed env.sh template Correct patch to correspond env.bat logic --- diff --git a/src/WOKTclLib/templates/env.sh b/src/WOKTclLib/templates/env.sh index 852ac91..4d9e215 100755 --- a/src/WOKTclLib/templates/env.sh +++ b/src/WOKTclLib/templates/env.sh @@ -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";