Salome HOME
Issue #2052 : really remove results if during the feature execution number of results...
[modules/shaper.git] / env.sh
diff --git a/env.sh b/env.sh
index 67da8f7580fc39018bb7b1280a656ec3f500b230..5b27f9ed0c2fed20462fda9b693ea9afcd7cdedc 100644 (file)
--- a/env.sh
+++ b/env.sh
@@ -1,16 +1,27 @@
 #!/bin/bash -x
 
-set -o nounset
+# Path to sources
+export SOURCES_DIR=$(pwd)
+# Path to build directory
+export BUILD_DIR=$(cd ${SOURCES_DIR}/.. && pwd)/build
+# Path to linux_run.sh & salome_run.sh
+export AUT_DIR=$(pwd)
 
-if [[ ! -f env_config.sh ]]; then
-  echo "Can not find env_config.sh. Please, run config.sh."
-  exit 1
-fi
-source env_config.sh
+# Path to env_*.sh files
+export TOOLS_DIR=$(pwd)
 
-export ROOT_DIR=$(cd $(dirname $0)/.. && pwd)
-export SOURCES_DIR=${ROOT_DIR}/sources
-export BUILD_DIR=${ROOT_DIR}/build${PLATFORM}
-export INSTALL_DIR=${ROOT_DIR}/install${PLATFORM}
+export HOME_OLD=$HOME
+# to use patched OCCT 7.1.0 for SHAPER
+#export CUSTOM_CAS_ROOT=1
+#export ENV_FOR_LAUNCH=1
 
-export NEWGEOM_PDIR=/dn48/newgeom/common/products
+source /dn64/series8x/work/init.sh 2017-03-22
+export HOME=$HOME_OLD
+
+# Path to solvespace-2
+export SHAPER_PDIR=/dn48/newgeom/common/products
+# Path to install directory
+export SHAPER_ROOT_DIR=$(cd ${SOURCES_DIR}/.. && pwd)/install
+
+source ${TOOLS_DIR}/env_linux.sh
+source ${TOOLS_DIR}/env_salome.sh