]> SALOME platform Git repositories - modules/shaper.git/blob - salome_env.sh
Salome HOME
Support of additional attributes if ModelWidget and features
[modules/shaper.git] / salome_env.sh
1 #!/bin/bash
2
3 main() {
4   local salome_version=7.6.0
5   local platform="$(lsb_release -is)"
6   local release="$(lsb_release -rs)"
7   if [[ ${salome_version} = '7.5.1' ]]; then
8     if   [[ "${platform}" = 'CentOS' ]]; then export INST_ROOT=/dn48/newgeom/common/SALOME-7.5.1_CentOS-6.3
9     elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-6.0_SOURCES
10     elif [[ "${platform}" = 'Debian' && ${release} =~ ^8 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.5.1_Debian-8.0_SOURCES
11     fi
12   elif [[ ${salome_version} = '7.6.0' ]]; then
13     if   [[ "${platform}" = 'CentOS' ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_CentOS-6.3_SOURCES
14     elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.6.0_Debian-6.0_SOURCES
15     fi
16   fi
17 }
18
19 main
20