Salome HOME
Provide global variables with the current SALOME version and a single directory name...
authorakl <akl@opencascade.com>
Wed, 18 Jun 2008 14:37:26 +0000 (14:37 +0000)
committerakl <akl@opencascade.com>
Wed, 18 Jun 2008 14:37:26 +0000 (14:37 +0000)
config_files/common.sh
config_files/modifyLaFiles.sh

index e996ab71662ca35ea01041c7fb8c974a2567b857..8763e9c85c9b1ebe9af613a700d8dfce4dbf47e1 100755 (executable)
@@ -6,7 +6,7 @@
 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
 #  Project   : SALOME
 #  Module    : Installation Wizard
-#  Copyright : 2002-2007 CEA
+#  Copyright : 2002-2008 CEA
 #
 #  This script is the part of the SALOME installation procedure.
 #
@@ -16,14 +16,17 @@ export DELIM="------"
 export SHRC="salome.sh"
 export CSHRC="salome.csh"
 
+#####################################################
+# !WARNING! This is current SALOME version number 
+####################################################
+export SALOME_VERSION="4.1.3"
 
-#this function takes several parameters
-#first parameter contains path to module source filder
-#second parameters is value of $VERSION variables form MODULE.sh file
+# Name of the single directory for SALOME modules
+export SDIR_NAME="SALOME_${SALOME_VERSION}"
 
+#this function takes one parameter - path to module source folder
 check_salome_src_version(){
 root_dir=`printenv $1`
-module_version=$2
 
 if [ -n "$root_dir" ]; then
     cfg_file=configure.ac
@@ -32,7 +35,7 @@ if [ -n "$root_dir" ]; then
     fi
     if [ -f ${root_dir}/${cfg_file} ] ; then
        ver=`grep -e "^AC_INIT" ${root_dir}/${cfg_file} | sed -e "s%.*\[\([[:digit:].]*\)\].*%\1%g"`
-       if [ "$ver" = "${module_version}" ]; then
+       if [ "$ver" = "${SALOME_VERSION}" ]; then
            return 0
        fi
     fi
index 04d066cacb368bdb25a6b93c06930fe6d2bd1554..93b4ce27ca30ddc88e5ef0bd99a32b9c6de6a50e 100755 (executable)
 
 modify_la_files(){
 
-modif_la_files ${INST_DIR}/$SINGLE_PATH
+modif_la_files ${INST_DIR}/$SDIR_NAME
 
 test $? -eq 0 && exit 1 || exit 0
 }
 
 PROCEDURE=$1
 INST_DIR=$2
-SINGLE_PATH=$3
 
 source ${INST_DIR}/env_products.sh
 source ./common.sh