]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Update for Salome series4x
authormaintenance team <salome-mnt@opencascade.com>
Thu, 25 Oct 2007 09:53:01 +0000 (09:53 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 25 Oct 2007 09:53:01 +0000 (09:53 +0000)
29 files changed:
config_files/BLSURFPLUGIN.sh [new file with mode: 0755]
config_files/CALCULATOR.sh
config_files/COMPONENT.sh
config_files/DOCUMENTATION.sh
config_files/FILTER.sh [new file with mode: 0755]
config_files/GEOM.sh
config_files/GHS3DPLUGIN.sh
config_files/GHS3DPRLPLUGIN.sh [new file with mode: 0755]
config_files/GUI.sh
config_files/HELLO.sh
config_files/HXX2SALOME.sh
config_files/HXX2SALOMEDOC.sh
config_files/HexoticPLUGIN.sh [new file with mode: 0755]
config_files/KERNEL.sh
config_files/KERNEL_SRC.sh_added [new file with mode: 0755]
config_files/LIGHT.sh
config_files/MED.sh
config_files/MULTIPR.sh [new file with mode: 0755]
config_files/NETGENPLUGIN.sh
config_files/PYCALCULATOR.sh
config_files/PYHELLO.sh
config_files/RANDOMIZER.sh
config_files/SAMPLES.sh
config_files/SIERPINSKY.sh
config_files/SMESH.sh
config_files/SUPERV.sh
config_files/VISU.sh
config_files/YACS.sh [new file with mode: 0755]
config_files/common.sh

diff --git a/config_files/BLSURFPLUGIN.sh b/config_files/BLSURFPLUGIN.sh
new file mode 100755 (executable)
index 0000000..88f83f7
--- /dev/null
@@ -0,0 +1,134 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : BLSURFPLUGIN_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${BLSURFPLUGIN_ROOT_DIR}" ]; then
+    if [ -f ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${BLSURFPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${BLSURFPLUGIN_SRC_DIR}" ]; then
+check_version(){
+  check_salome_src_version BLSURFPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+}
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export BLSURFPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${BLSURFPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+    export LD_LIBRARY_PATH=\${BLSURFPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+    export PYTHONPATH=\${BLSURFPLUGIN_ROOT_DIR}/bin/salome:\${BLSURFPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export BLSURFPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/BLSURFPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT BLSURFPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"BLSURFPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"BLSURFPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+# Binaries for this module is not delivered
+install_source
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="BLSURFPLUGIN_${VERSION}"
+export PRODUCT_SRC="BLSURFPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index a104b220f76286774002aa7c69f210713c37dfb3..e383046af7463007fe24a6feef8d9169f658be2b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${CALCULATOR_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${CALCULATOR_SRC_DIR}" ]; then
-    if [ -f ${CALCULATOR_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${CALCULATOR_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version CALCULATOR_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index ac8c5702288cf8f392820b631d8edefffe9176bf..752e6c79bc6210ad2fe9e442432767d21db7eb14 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${COMPONENT_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${COMPONENT_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${COMPONENT_SRC_DIR}" ]; then
-    if [ -f ${COMPONENT_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${COMPONENT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version COMPONENT_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 9e275bd9165ad982249f7d5a6148e2a03c420002..b11f0ecbfee4966021816e2e1d88d44bd6b24bf5 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 # There is no possibility to check version number
diff --git a/config_files/FILTER.sh b/config_files/FILTER.sh
new file mode 100755 (executable)
index 0000000..89649f0
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : FILTER_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${FILTER_ROOT_DIR}" ]; then
+    if [ -f ${FILTER_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${FILTER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${FILTER_SRC_DIR}" ]; then
+  check_salome_src_version FILTER_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export FILTER_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${FILTER_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${FILTER_ROOT_DIR}/bin/salome:\${FILTER_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export FILTER_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/FILTERsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT FILTER
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"FILTER_BUILD" && rm -fr ${INSTALL_ROOT}/"FILTER_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/FILTERbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/FILTERsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export FILTER_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="FILTER_${VERSION}"
+export PRODUCT_SRC="FILTER_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index 2424f142d846d76c4ebaccb3faaf59393131bb56..bc35395aaf552428b93831a6632e6e59e23f8a6b 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${GEOM_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${GEOM_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${GEOM_SRC_DIR}" ]; then
-    if [ -f ${GEOM_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${GEOM_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version GEOM_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 9f878956175c06c9791c0cdafc7e7515ab7ee45a..4998e3431b933eb2878b347b6e0815b483cb09d3 100755 (executable)
@@ -25,12 +25,9 @@ if [ -n "${GHS3DPLUGIN_ROOT_DIR}" ]; then
     fi
   return 0
 elif [ -n "${GHS3DPLUGIN_SRC_DIR}" ]; then
-    if [ -f ${GHS3DPLUGIN_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${GHS3DPLUGIN_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version GHS3DPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
diff --git a/config_files/GHS3DPRLPLUGIN.sh b/config_files/GHS3DPRLPLUGIN.sh
new file mode 100755 (executable)
index 0000000..d9dbf2d
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : GHS3DPRLPLUGIN_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${GHS3DPRLPLUGIN_ROOT_DIR}" ]; then
+    if [ -f ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${GHS3DPRLPLUGIN_SRC_DIR}" ]; then
+  check_salome_src_version GHS3DPRLPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export GHS3DPRLPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${GHS3DPRLPLUGIN_ROOT_DIR}/bin/salome:\${GHS3DPRLPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export GHS3DPRLPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPRLPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT GHS3DPRLPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"GHS3DPRLPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"GHS3DPRLPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/GHS3DPRLPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/GHS3DPRLPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export GHS3DPRLPLUGIN_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="GHS3DPRLPLUGIN_${VERSION}"
+export PRODUCT_SRC="GHS3DPRLPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index 922e20807894ee6e01bc82952f7ebca28dc61c1f..eff3ec69f6800d95ede512784c339ec6908d887c 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${GUI_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${GUI_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${GUI_SRC_DIR}" ]; then
-    if [ -f ${GUI_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${GUI_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version GUI_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 2006f0b5b0156caea6bb977252d46ec40e8535c1..23d5660fd24c20a6d405d58628dec0e8d1594818 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${HELLO_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${HELLO_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${HELLO_SRC_DIR}" ]; then
-    if [ -f ${HELLO_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${HELLO_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version HELLO_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 610ee7438643f4cd0169c7060986e41a5c1bf2fc..ce5fe8145571b9d3d24d5e30142cec2712bcf7e2 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 # No way to check version!
index f4c61f743e3ad5719136f87861a15964c2588f59..8992bd309a20718050e1798e01c714a947d50e3f 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 # No way to check version!
diff --git a/config_files/HexoticPLUGIN.sh b/config_files/HexoticPLUGIN.sh
new file mode 100755 (executable)
index 0000000..b802c47
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : HexoticPLUGIN_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${HexoticPLUGIN_ROOT_DIR}" ]; then
+    if [ -f ${HexoticPLUGIN_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${HexoticPLUGIN_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${HexoticPLUGIN_SRC_DIR}" ]; then
+  check_salome_src_version HexoticPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export HexoticPLUGIN_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${HexoticPLUGIN_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${HexoticPLUGIN_ROOT_DIR}/bin/salome:\${HexoticPLUGIN_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export HexoticPLUGIN_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/HexoticPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT HexoticPLUGIN
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"HexoticPLUGIN_BUILD" && rm -fr ${INSTALL_ROOT}/"HexoticPLUGIN_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/HexoticPLUGINbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/HexoticPLUGINsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export HexoticPLUGIN_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="HexoticPLUGIN_${VERSION}"
+export PRODUCT_SRC="HexoticPLUGIN_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index ac95a75442361d9239a202baacbe9cbb72900681..bf4d13f94df614e366c1b3dfa76660a156ab1abe 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${KERNEL_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${KERNEL_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${KERNEL_SRC_DIR}" ]; then
-    if [ -f ${KERNEL_SRC_DIR}/configure.ac ]; then
-       ver=`grep -E "^VERSION=" ${KERNEL_SRC_DIR}/configure.ac | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version KERNEL_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
diff --git a/config_files/KERNEL_SRC.sh_added b/config_files/KERNEL_SRC.sh_added
new file mode 100755 (executable)
index 0000000..b71669c
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash -noprofile
+
+VERSION=4.0.0
+
+check_version(){
+  check_salome_src_version KERNEL_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+}
index abb570a45f0ec2c6f836792f3a439254859c3b8b..05c8b7101869fee4155b91ada585164b9c1e4d21 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${LIGHT_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${LIGHT_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${LIGHT_SRC_DIR}" ]; then
-    if [ -f ${LIGHT_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${LIGHT_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version LIGHT_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 999e2ec48ce109cbcaa477a25c59f57edf22bc52..187f76a8a2e17c586034efd305f32bc041b0e8c5 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${MED_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${MED_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${MED_SRC_DIR}" ]; then
-    if [ -f ${MED_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${MED_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version MED_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
diff --git a/config_files/MULTIPR.sh b/config_files/MULTIPR.sh
new file mode 100755 (executable)
index 0000000..4eb0cd8
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : MULTIPR_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${MULTIPR_ROOT_DIR}" ]; then
+    if [ -f ${MULTIPR_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${MULTIPR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${MULTIPR_SRC_DIR}" ]; then
+  check_salome_src_version MULTIPR_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export MULTIPR_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export MULTIPR_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT MULTIPR
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"MULTIPR_BUILD" && rm -fr ${INSTALL_ROOT}/"MULTIPR_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/MULTIPRsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export MULTIPR_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="MULTIPR_${VERSION}"
+export PRODUCT_SRC="MULTIPR_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index e4793ddf4f1225370c770efb897da0387a9be719..2e8289a8b8977963b360768eeffede9895d62d64 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
@@ -25,12 +25,9 @@ if [ -n "${NETGENPLUGIN_ROOT_DIR}" ]; then
     fi
   return 0
 elif [ -n "${NETGENPLUGIN_SRC_DIR}" ]; then
-    if [ -f ${NETGENPLUGIN_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${NETGENPLUGIN_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version NETGENPLUGIN_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index bb597254787c434d3079bef566fad427525afa10..460d7ea386ee15f93431056e4fe5a3394000945e 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${PYCALCULATOR_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${PYCALCULATOR_SRC_DIR}" ]; then
-    if [ -f ${PYCALCULATOR_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${PYCALCULATOR_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version PYCALCULATOR_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 0af75a30b206176b3a132650a7c408a7694ec7d6..08e76048075d38452aafbed57147c26a5cdd6f48 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${PYHELLO_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${PYHELLO_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${PYHELLO_SRC_DIR}" ]; then
-    if [ -f ${PYHELLO_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${PYHELLO_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version PYHELLO_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index b32ed67cad7438455c3eccd3b454daa4c63037c9..2c24f4ba3b0644801ec456888529f4664593e8b3 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${RANDOMIZER_SRC_DIR}" ]; then
-    if [ -f ${RANDOMIZER_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${RANDOMIZER_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version RANDOMIZER_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 9346bdac8205fd4a313c7479bf617002244bff18..d07430c91c27d9b2478e7ca55b6533eb0624bc61 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 # There is no possibility to check version number
index c1b44523b5d4cfa902c7afa9335e90b48cbef6bc..ccb6940151871e245daba265160a2385622d1dc1 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
@@ -23,12 +23,9 @@ if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${SIERPINSKY_SRC_DIR}" ]; then
-    if [ -f ${SIERPINSKY_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${SIERPINSKY_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version SIERPINSKY_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 425b3853d2ce264b9a45e6571c7b0046c96ad102..e34b7fc734f038f7c2f19eb62186ae72e77f365f 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${SMESH_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${SMESH_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${SMESH_SRC_DIR}" ]; then
-    if [ -f ${SMESH_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${SMESH_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version SMESH_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 523a09b1d42f2472598f489c1a71be8aa247fa93..2005b3ae6196269f0925283031e787c16d001391 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${SUPERV_ROOT_DIR=}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${SUPERV_ROOT_DIR=}" ]; then
        fi
     fi
 elif [ -n "${SUPERV_SRC_DIR}" ]; then
-    if [ -f ${SUPERV_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${SUPERV_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version SUPERV_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
index 6dadb6e71aecbd4b59a1980334debb16a0fd675a..99989fe38c5ddc57f6394447976a74cab853dc4c 100755 (executable)
@@ -12,7 +12,7 @@
 #
 ####################################################################################
 
-VERSION="3.2.7"
+VERSION="4.0.0"
 
 check_version(){
 if [ -n "${VISU_ROOT_DIR}" ]; then
@@ -24,12 +24,9 @@ if [ -n "${VISU_ROOT_DIR}" ]; then
        fi
     fi
 elif [ -n "${VISU_SRC_DIR}" ]; then
-    if [ -f ${VISU_SRC_DIR}/configure.in.base ]; then
-       ver=`grep -E "^VERSION=" ${VISU_SRC_DIR}/configure.in.base | awk -F= '{print $NF}' | tr -d '[:space:]' ` 
-       if [ "$ver" = "${VERSION}" ]; then
-           return 0
-       fi
-    fi
+  check_salome_src_version VISU_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
 fi
 return 1
 }
diff --git a/config_files/YACS.sh b/config_files/YACS.sh
new file mode 100755 (executable)
index 0000000..15dace6
--- /dev/null
@@ -0,0 +1,141 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : YACS_BIN.sh
+#  Created   : Thu Dec 18 12:01:00 2002
+#  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
+#  Project   : SALOME
+#  Module    : Installation Wizard
+#  Copyright : 2002-2007 CEA
+#
+#  This script is the part of the SALOME installation procedure.
+#
+####################################################################################
+
+VERSION="4.0.0"
+
+check_version(){
+if [ -n "${YACS_ROOT_DIR}" ]; then
+    if [ -f ${YACS_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${YACS_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+elif [ -n "${YACS_SRC_DIR}" ]; then
+  check_salome_src_version YACS_SRC_DIR $VERSION
+  if [ $? -eq 0 ] ; then return 0 ; fi
+  return 1
+fi
+return 1
+}
+
+print_env_bin(){
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export YACS_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${YACS_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${YACS_ROOT_DIR}/bin/salome:\${YACS_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+print_env_src(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE}_src $DELIM
+export YACS_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT_SRC}
+##
+EOF
+
+(test -w ${PRODUCT_SRC_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_SRC_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+try_existing ${PRODUCT_SRC_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/YACSsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+mkdir -p ${PRODUCT_DIR}
+
+if [ -e ./build.sh ] ; then
+    cp -f ./build.sh ${INSTALL_ROOT}
+fi
+
+CUR_DIR=`pwd`
+cd ${INSTALL_ROOT}
+check_jb build.sh -o -b -d -v 0 -p $INSTALL_ROOT YACS
+
+cd $CUR_DIR
+
+# remove sources and temporary files after building
+if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
+    test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR}
+    test -d ${INSTALL_ROOT}/"YACS_BUILD" && rm -fr ${INSTALL_ROOT}/"YACS_BUILD"
+fi
+
+# to generate environment scripts
+try_preinstalled
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/YACSbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/YACSsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export YACS_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+# to generate environment scripts
+try_preinstalled
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+export PRODUCT_TYPE=$6;
+export INSTALL_PRODUCTS=$7;
+SRC_DIR=$8;
+shift
+REMOVE_SRC_TMP=$8;
+export PRODUCT="YACS_${VERSION}"
+export PRODUCT_SRC="YACS_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
index 436dd6cd9ec1a9bc1cd4cb8ce6812e70b5aa00d4..f5a0c1f720538b99bd1a5ba8b5bd70c678b7062a 100755 (executable)
@@ -16,6 +16,30 @@ export DELIM="------"
 export SHRC="salome.sh"
 export CSHRC="salome.csh"
 
+
+#this function takes several parameters
+#first parameter contains path to module source filder
+#second parameters is value of $VERSION variables form MODULE.sh file
+
+check_salome_src_version(){
+root_dir=`printenv $1`
+module_version=$2
+
+if [ -n "$root_dir" ]; then
+    cfg_file=configure.ac
+    if [ ! -f ${root_dir}/${cfg_file} ] ; then
+       cfg_file=configure.in.base
+    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
+           return 0
+       fi
+    fi
+fi
+return 1
+}
+
 #this function takes several parameters
 #first parameter contains descriptor of output file
 #next parameters is command for execution
@@ -730,6 +754,27 @@ if [ "$l" != "X" ] ; then
     moddir=`printenv ${mod}_ROOT_DIR`
     sed -e "s%^libdir='[^[:space:]]*${mod}[^[:space:]]*/\(lib.*\)'%libdir='${moddir}/\1'%g" $l > $l"_"
     mv -f $l"_" $l
+
+    # 15. process libxml dependencies
+    libxmldir=`printenv LIBXML_DIR`/lib
+    if [ ! -d ${libxmldir} ] ; then libxmldir=`printenv  LIBXML_DIR`/lib ; fi
+    sed -e "s%\(.*\)\([[:space:]].*/lib/libxml2.la[[:space:]]\)\(.*\)%\1 ${libxmldir}/libxml2.la \3%g" \
+        -e "s%-L[^[:space:]]*libxml2[^[:space:]]*/lib%-L${libxmldir}%g" $l > $l"_"
+    mv -f $l"_" $l     
+
+    # 16. process metis dependencies
+    metisdir=`printenv METISDIR`
+    if [ ! -d ${metisdir} ] ; then metisdir=`printenv  METISDIR` ; fi
+    sed -e "s%-L[^[:space:]]*metis[^[:space:]]*%-L${metisdir}%g" $l > $l"_"
+    mv -f $l"_" $l     
+
+    # 3. process scotch dependencies
+    scotchdir=`printenv SCOTCHDIR`/bin
+    if [ ! -d ${scotchdir} ] ; then scotchdir=`printenv SCOTCHDIR`/bin ; fi
+    sed    -e "s%-L[^[:space:]]*scotch[^[:space:]]*/bin%-L${scotchdir}%g" $l > $l"_"
+    mv -f $l"_" $l     
+
+
 fi
 done