# 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.
#
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
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
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