18 rm env_config.sh || echo "File env_config.sh was not found."
20 echo "#!/bin/bash -ex" >> env_config.sh
23 if [ -f PLATFORM ]; then
24 PLATFORM="$(lsb_release -is)"
25 RELEASE="$(lsb_release -rs)"
26 if [ "${PLATFORM}" = 'CentOS' ]; then PLATFORM=-centos
27 elif [ "${PLATFORM}" = 'Debian' ]; then
28 if [ "${RELEASE}" = '8.0' ]; then PLATFORM=-d8
35 PLATFORM=${PLATFORM}_d
38 echo "export PLATFORM=${PLATFORM}" >> env_config.sh
41 local salome_version=$1
42 local platform="$(lsb_release -is)"
43 local release="$(lsb_release -rs)"
44 if [[ ${salome_version} = '7.7.0' ]]; then
45 if [[ "${platform}" = 'CentOS' ]]; then export PRODUCTS_ROOT=/dn23/NEWGEOM/common/PRODUCTS/CentOS.6.3.64/7.7.0
46 elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export PRODUCTS_ROOT=/dn23/NEWGEOM/common/PRODUCTS/DEBIAN.6.0.64/7.7.0
48 elif [[ ${salome_version} = '7.8.0' ]]; then
49 if [[ "${platform}" = 'CentOS' ]]; then export PRODUCTS_ROOT=/dn23/NEWGEOM/common/PRODUCTS/CentOS.6.3.64/7.8.0
52 echo "Could not find PRODUCTS for the platform ${platform} ${release}"
56 include_products '7.8.0'
59 local salome_version=$1
60 local platform="$(lsb_release -is)"
61 local release="$(lsb_release -rs)"
62 if [[ ${salome_version} = '7.7.0' ]]; then
63 if [[ "${platform}" = 'CentOS' ]]; then export SUIT_DIR=/dn46/SALOME/series7x/V7_7_0/CentOS63-64/GUI
64 elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export SUIT_DIR=/dn46/SALOME/series7x/V7_7_0/Debian60-64/GUI
66 elif [[ ${salome_version} = '7.8.0' ]]; then
67 if [[ "${platform}" = 'CentOS' ]]; then export SUIT_DIR=/dn46/SALOME/series7x/V7_8_0/CentOS63-64/GUI
70 echo "Could not find PRODUCTS for the platform ${platform} ${release}"
77 local salome_version=$1
78 local platform="$(lsb_release -is)"
79 local release="$(lsb_release -rs)"
80 if [[ ${salome_version} = '7.5.1' ]]; then
81 if [[ "${platform}" = 'CentOS' ]]; then export SALOME_ROOT=/dn48/newgeom/common/SALOME-7.5.1_CentOS-6.3
82 elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-6.0_SOURCES
83 elif [[ "${platform}" = 'Debian' && ${release} =~ ^8 ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-8.0_SOURCES
85 elif [[ ${salome_version} = '7.6.0' ]]; then
86 if [[ "${platform}" = 'CentOS' ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_CentOS-6.3_SOURCES
87 elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_Debian-6.0_SOURCES
89 elif [[ ${salome_version} = '7.7.0' ]]; then
90 if [[ "${platform}" = 'CentOS' ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.7.0_CentOS63-64
91 elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.7.0_Debian60-64
93 elif [[ ${salome_version} = '7.8.0' ]]; then
94 if [[ "${platform}" = 'CentOS' ]]; then export SALOME_ROOT=/dn23/NEWGEOM/common/SALOME-7.8.0_CentOS63-64
97 echo "Could not find SALOME for the platform ${platform} ${release}"
101 include_salome '7.8.0'
104 if [[ ${MODE} = 'Standalone' ]]; then
105 echo "export INST_ROOT=${PRODUCTS_ROOT}" >> env_config.sh
106 echo "export SUIT_DIR=${SUIT_DIR}" >> env_config.sh
108 echo "export INST_ROOT=${SALOME_ROOT}" >> env_config.sh