Salome HOME
Merge branch 'master' into cgt/split
[modules/shaper.git] / env.sh
diff --git a/env.sh b/env.sh
index 6282b1a850555aae20f975d24a0d4ce62605a9d8..5951769fc415bc016bbbbf88ad12c71e8de22f54 100644 (file)
--- a/env.sh
+++ b/env.sh
@@ -1,22 +1,24 @@
 #!/bin/bash -x
 
-set -o nounset
+export SALOME_DIR=/dn46/SALOME/series9x/current-2019-03-07
 
-PLATFORM=""
-if [ -f PLATFORM ]; then
-PLATFORM="$(lsb_release -is)"
-RELEASE="$(lsb_release -rs)"
-if [ "${PLATFORM}" = 'CentOS' ]; then PLATFORM=-centos
-elif [ "${PLATFORM}" = 'Debian' ]; then
-  if [ "${RELEASE}" = '8.0' ]; then PLATFORM=-d8
-  else PLATFORM=-d6
-  fi
-fi
-fi
+# 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)
 
-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}
+# Path to env_*.sh files
+export TOOLS_DIR=$(pwd)
 
-export NEWGEOM_PDIR=/dn48/newgeom/common/products
+source ${SALOME_DIR}/start.sh
+
+# Path to special products dir (lcov, cpplint)
+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