]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Use SALOME V7.7.0
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 16 Nov 2015 08:19:10 +0000 (11:19 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 16 Nov 2015 08:19:10 +0000 (11:19 +0300)
config.sh
env_linux.sh
env_salome.sh
make.sh

index cf1ae4a915702d5aff59fe180ce2e6df4844632d..baf2962758567b73c946b44f007d04a1ac3842bc 100755 (executable)
--- a/config.sh
+++ b/config.sh
@@ -22,8 +22,8 @@ fi
 
 echo "export PLATFORM=${PLATFORM}" >> env_config.sh
 
-main() {
-  local salome_version='7.6.0'
+include_salome() {
+  local salome_version=$1
   local platform="$(lsb_release -is)"
   local release="$(lsb_release -rs)"
   if [[ ${salome_version} = '7.5.1' ]]; then
@@ -34,12 +34,16 @@ main() {
   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
-    else 
-      echo "Could not find SALOME for the platform ${platform} ${release}"
-      exit 1
     fi
+  elif [[ ${salome_version} = '7.7.0' ]]; then
+    if   [[ "${platform}" = 'CentOS' ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.7.0_CentOS63-64
+    elif [[ "${platform}" = 'Debian' && ${release} =~ ^6 ]]; then export INST_ROOT=/dn23/NEWGEOM/common/SALOME-7.7.0_Debian60-64
+    fi
+  else 
+    echo "Could not find SALOME for the platform ${platform} ${release}"
+    exit 1
   fi
 }
-main
+include_salome '7.7.0'
 echo "export INST_ROOT=${INST_ROOT}" >> env_config.sh
 
index 379bdd24c0acdb28eaccf2fd6166be3170dcb83a..fa701589b210cc5aa37f24f0b232b9951a48ca89 100644 (file)
@@ -15,7 +15,8 @@ for path in INST_ROOT NEWGEOM_PDIR NEWGEOM_ROOT_DIR; do
 done
 
 set +u
-source ${INST_ROOT}/env_products.sh
+echo "Source ${INST_ROOT}/$(cd ${INST_ROOT} && ls *env_products.sh)"
+source ${INST_ROOT}/$(cd ${INST_ROOT} && ls *env_products.sh)
 set -u
 
 #------ SolveSpace ------
index e4898ba709350b63935d9028ead420f799874e27..7aa4b6992e0260ed3440a323f356eaa503fa9555 100644 (file)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+for path in TOOLS_DIR; do
+  if [[ -z "${!path}" ]]; then
+    echo "${path} not found."; exit 1
+  else
+    echo "Found ${path}: ${!path}"
+  fi
+done
+
 source ${TOOLS_DIR}/env_linux.sh
 
 # Correcting path which defined with error
diff --git a/make.sh b/make.sh
index 725d131dc330fca47fbaaed952a527ed960a65e3..fd684dce090a101d4b69ad5c0082e9676fde75a0 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 source env.sh
-source ${TOOLS_DIR}/env_standalone.sh
+source ${TOOLS_DIR}/env_salome.sh
 
 CMAKE_ARGS=""
 if [ -f GCOV ]; then