]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Adding MULTIPR module to Salome installation procedure
authormaintenance team <salome-mnt@opencascade.com>
Thu, 14 Jun 2007 13:06:44 +0000 (13:06 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 14 Jun 2007 13:06:44 +0000 (13:06 +0000)
13 files changed:
config_Debian_3.1.xml
config_Mandrake_10.1.xml
config_Mandriva_2006.0.xml
config_Mandriva_2006.0_64.xml
config_RedHatEnterprise_4.xml
config_RedHat_8.0.xml
config_RedHat_9.xml
config_Scientific_4.2.xml
config_Scientific_4.3.xml
config_files/MULTIPR_BIN.sh [new file with mode: 0755]
config_files/MULTIPR_SRC.sh [new file with mode: 0755]
config_files/build.csh
config_files/build.sh

index 56d1a8640016ecea7a9fa42af2b8dda1129be80e..48eb7d675bb5a20dfdebbc9b6ef1ec969d6303ee 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index 89afa52d809ab1ef15d620353ddeca54a0fa3823..4081e18e5136a6b979b4d248f5c69fd09a0dae34 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index 44a7bdd07b300bf747824e743cd10ced7bdc7843..023cfce69c346117e655be7a9e7b065fb9ede102 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index 718f22712c494e35d14b708b35b81d32f42e98fd..76b5c554bf275354774b800661db24572d15e965 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index c4b5d26360faad8ba409b4b7f88fc6e0215834a1..dbd4a5288840d0ec893dfabfc5abf58cee116eee 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index 583081b6b1460089d412231420255cdde1f1eb4c..45d7f8a6743caefda73827d728f16a60eec73f77 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="FILTER_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index fdcf634be3b5954d890557a69d68ad3910cab97b..32ac7640e019b6b4f2bcec65dc4704bd3978621c 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="FILTER_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index c92e94d5f064faa6bd23aea57c72e5f94c641ad0..d34b1fab7d6adbb79ffed1e28a85b89b236e60c0 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
index 8af09cb797040b54512e9170f17381cde122120d..b99fa47eda70076dcc70596979993c9958111912 100755 (executable)
           installdiskspace="208"
           temporarydiskspace="0"
           script="YACS_BIN.sh"/>
+  <product name="MULTIPRbin"
+           version="4.0.0"
+           context="salome binaries" 
+           description="Precompiled partitioning/decimation module for the SALOME platform."
+           install="install binaries"
+          supported="install binaries"
+          disable="false"
+          dependancies="MEDbin"
+          installdiskspace="208"
+          temporarydiskspace="0"
+          script="MULTIPR_BIN.sh"/>
+  <product name="MULTIPRsrc"
+           version="4.0.0" 
+           context="salome sources" 
+           description="Sources of partitioning/decimation module for the SALOME platform"
+           install="install sources"
+          supported="install sources"
+          disable="false"
+          dependancies="MEDsrc"
+          installdiskspace="2958,221"
+          temporarydiskspace="0"
+          script="MULTIPR_SRC.sh"/>
   <product name="SAMPLES"
            version="4.0.0" 
            context="salome sources,salome binaries" 
diff --git a/config_files/MULTIPR_BIN.sh b/config_files/MULTIPR_BIN.sh
new file mode 100755 (executable)
index 0000000..bb95f73
--- /dev/null
@@ -0,0 +1,115 @@
+#!/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
+    check_lib_version VERSION ${MULTIPR_ROOT_DIR}/bin/salome
+    if [ "$?" -eq "0" ]; then
+       ver=`cat ${MULTIPR_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $2}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       fi
+    fi
+fi
+return 1
+}
+
+print_env(){
+
+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 LD_LIBRARY_PATH=\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+    export PYTHONPATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/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}"
+}
+
+# looks for the native product and collects it's environment (used by make_env())
+try_native(){
+check_version
+if test `uname -m` = "x86_64" ; then
+export LIB_PREFIX=64
+else
+export LIB_PREFIX=""
+fi
+if [ $? -eq 0 ] ; then
+    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 LD_LIBRARY_PATH=\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+    export PYTHONPATH=\${MULTIPR_ROOT_DIR}/bin/salome:\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${MULTIPR_ROOT_DIR}/lib${LIB_PREFIX}/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}
+  fi
+fi
+##
+EOF
+    make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+    return 0
+fi
+return 1;
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+return 1
+}
+
+install_binary()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/MULTIPRbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export MULTIPR_ROOT_DIR=${PRODUCT_DIR}
+modif_la_files ${PRODUCT_DIR}
+
+print_env
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="MULTIPRbin" ; fi
+export PRODUCT="MULTIPR_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+$PROCEDURE 
diff --git a/config_files/MULTIPR_SRC.sh b/config_files/MULTIPR_SRC.sh
new file mode 100755 (executable)
index 0000000..493a931
--- /dev/null
@@ -0,0 +1,107 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : COMPONENT_SRC.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 "${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
+fi
+return 1
+}
+
+print_env(){
+cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export COMPONENT_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
+##
+EOF
+
+(test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+}
+
+# looks for the native product and collects it's environment (used by make_env())
+try_native(){
+check_version
+if [ $? -eq 0 ] ; then
+    cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
+#$DELIM ${PRODUCT_TYPE} $DELIM
+export COMPONENT_SRC_DIR=${COMPONENT_SRC_DIR}
+##
+EOF
+    make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
+    return 0
+fi
+return 1;
+}
+
+try_preinstalled(){
+try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+return $?
+}
+
+install_source()
+{
+make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
+source ${INSTALL_WORK}/$SHRC
+
+check_jb tar xfz ${SOURCE_DIR}/COMPONENTsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+print_env
+}
+
+install_source_and_build()
+{
+# install sources
+install_source
+
+# build sources
+prod_bin=`echo $PRODUCT_TYPE | sed "s%src%bin%g"`
+mkdir -p ${INSTALL_ROOT}/COMPONENT_${VERSION}
+
+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 COMPONENT
+
+# create environment for the built binaries
+cd $CUR_DIR
+./COMPONENT_BIN.sh print_env $INSTALL_WORK $SOURCE_DIR $INSTALL_ROOT $PRODUCT_SEQUENCE $prod_bin
+}
+
+install_binary()
+{
+return 1
+}
+
+export PROCEDURE=$1;
+export INSTALL_WORK=$2;
+export SOURCE_DIR=$3;
+export INSTALL_ROOT=$4;
+export PRODUCT_SEQUENCE=$5;
+if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="COMPONENTsrc" ; fi
+export PRODUCT="COMPONENT_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}
+source ./common.sh
+$PROCEDURE 
index 437a88556dcbead94add85b98a215a6dff09ec26..24ae14257be92d86980b2e17cbfc8ba0913729a6 100755 (executable)
@@ -21,7 +21,7 @@ set is_delete=0
 set verbose_level=2
 set params=""
 set b_params=""
-set modules=(KERNEL GUI GEOM MED SMESH VISU SUPERV NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT SIERPINSKY RANDOMIZER FILTER YACS)
+set modules=(KERNEL GUI GEOM MED SMESH VISU SUPERV NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT SIERPINSKY RANDOMIZER FILTER YACS MULTIPR)
 set optim=""
 set is_install=0
 set is_help=0
index 78d501e77d3524ed1024624fb28a414b2697cd9a..b8f3c8cf333cfdd3fed546a812b036fcd80e5399 100755 (executable)
@@ -83,7 +83,7 @@ is_delete=0
 verbose_level=2
 params=""
 b_params=""
-modules="KERNEL GUI GEOM MED SMESH VISU SUPERV NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT SIERPINSKY RANDOMIZER FILTER YACS"
+modules="KERNEL GUI GEOM MED SMESH VISU SUPERV NETGENPLUGIN GHS3DPLUGIN BLSURFPLUGIN HexoticPLUGIN GHS3DPRLPLUGIN COMPONENT PYCALCULATOR CALCULATOR HELLO PYHELLO LIGHT SIERPINSKY RANDOMIZER FILTER YACS MULTIPR"
 optim=""
 is_install=0
 is_tui=0