-if [ "${INST_ROOT}" = "" ] ; then
- source /dn47/SALOME/PRODUCTS/7x/opt/CentOS.6.3.64/7.3.0/env_products.sh
- source /dn47/SALOME/stable/V7_3_0/start.sh
-else
- source ${INST_ROOT}/env_products.sh
-fi
+main() {
+ local salome_version=7.6.0
+ local platform="$(lsb_release -is)"
+ local release="$(lsb_release -rs)"
+ if [[ ${salome_version} == "7.5.1" ]]; then
+ if [[ "${platform}" == "CentOS" ]]; then export INST_ROOT=/dn48/newgeom/common/SALOME-7.5.1_CentOS-6.3
+ elif [[ "${platform}" == "Debian" && ${release} =~ ^6 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-6.0_SOURCES
+ elif [[ "${platform}" == "Debian" && ${release} =~ ^8 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-8.0_SOURCES
+ fi
+ elif [[ ${salome_version} == "7.6.0" ]]; then
+ if [[ "${platform}" == "CentOS" ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_CentOS-6.3_SOURCES
+ elif [[ "${platform}" == "Debian" && ${release} =~ ^6 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_Debian-6.0_SOURCES
+ fi
+ fi
+}