]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Add RANDOMIZER and SIERPINSKY modules.
authorakl <akl@opencascade.com>
Wed, 22 Aug 2007 14:51:40 +0000 (14:51 +0000)
committerakl <akl@opencascade.com>
Wed, 22 Aug 2007 14:51:40 +0000 (14:51 +0000)
config.xml
config_files/RANDOMIZER.sh [new file with mode: 0755]
config_files/SIERPINSKY.sh [new file with mode: 0755]

index 06e6a85ea1d3752ba31471d453f091a8b302cd5a..1e8fc4cd2a3a5879a83eb9c952a4ceca4d534eae 100644 (file)
                    installdiskspace="152,141,2914"
                    script="LIGHT.sh"/>
     </product>
+    <product name="RANDOMIZER"
+             type="component"
+            description="SALOME-based module implement simple interface to calculate Sierpinsky fields">
+      <installation os="Debian3.1"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="Mandrake10.1"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="Mandriva2006.0"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="Mandriva2006.0_64"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="RedHat8.0"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="RedHat9"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="RedHatEnterprise4"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="Scientific4.2"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+      <installation os="Scientific4.3"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="RANDOMIZER.sh"/>
+    </product>
+    <product name="SIERPINSKY"
+             type="component"
+            description="SALOME-based module implement simple interface to calculate Sierpinsky fields">
+      <installation os="Debian3.1"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="Mandrake10.1"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="Mandriva2006.0"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="Mandriva2006.0_64"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="RedHat8.0"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="RedHat9"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="RedHatEnterprise4"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="Scientific4.2"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+      <installation os="Scientific4.3"
+                    version="3.2.7" 
+                   disable="false"
+                   installdiskspace="208,221,2958"
+                   script="SIERPINSKY.sh"/>
+    </product>
     <product name="SAMPLES"
              type="component"
             description="SALOME samples files">
       <dep>KERNEL</dep>
       <dep>GUI</dep>
     </product>
+    <product name="RANDOMIZER">
+      <dep>GUI</dep>
+      <dep>VISU</dep>
+      <dep>SUPERV</dep>
+    </product>
+    <product name="SIERPINSKY">
+      <dep>GUI</dep>
+      <dep>VISU</dep>
+      <dep>SUPERV</dep>
+      <dep>RANDOMIZER</dep>
+    </product>
     <product name="SAMPLES">
     </product>
 
diff --git a/config_files/RANDOMIZER.sh b/config_files/RANDOMIZER.sh
new file mode 100755 (executable)
index 0000000..b32ed67
--- /dev/null
@@ -0,0 +1,144 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : RANDOMIZER_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="3.2.7"
+
+check_version(){
+if [ -n "${RANDOMIZER_ROOT_DIR}" ]; then
+    if [ -f ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${RANDOMIZER_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       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
+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 RANDOMIZER_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${RANDOMIZER_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${RANDOMIZER_ROOT_DIR}/bin/salome:\${RANDOMIZER_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 RANDOMIZER_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}/RANDOMIZERsourcesV${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 RANDOMIZER
+
+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}/"RANDOMIZER_BUILD" && rm -fr ${INSTALL_ROOT}/"RANDOMIZER_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}/RANDOMIZERbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/RANDOMIZERsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export RANDOMIZER_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="RANDOMIZER_${VERSION}"
+export PRODUCT_SRC="RANDOMIZER_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE 
diff --git a/config_files/SIERPINSKY.sh b/config_files/SIERPINSKY.sh
new file mode 100755 (executable)
index 0000000..cc7903c
--- /dev/null
@@ -0,0 +1,144 @@
+#!/bin/bash -noprofile
+
+####################################################################################
+#  File      : SIERPINSKY_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="3.2.7"
+
+check_version(){
+if [ -n "${SIERPINSKY_ROOT_DIR}" ]; then
+    if [ -f ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION ]; then
+       ver=`cat ${SIERPINSKY_ROOT_DIR}/bin/salome/VERSION | awk -F: '{print $NF}' | tr -d '[:space:]' ` 
+       if [ "$ver" = "${VERSION}" ]; then
+           return 0
+       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
+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 SIERPINSKY_ROOT_DIR=\${INSTALL_ROOT}/${PRODUCT}
+if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
+  if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
+    export PATH=\${SIERPINSKY_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${SIERPINSKY_ROOT_DIR}/bin/salome:\${SIERPINSKY_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} $DELIM
+export SIERPINSKY_SRC_DIR=\${INSTALL_ROOT}/${PRODUCT}
+##
+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}/SIERPINSKYsourcesV${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 SIERPINSKY
+
+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}/"SIERPINSKY_BUILD" && rm -fr ${INSTALL_ROOT}/"SIERPINSKY_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}/SIERPINSKYbinariesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+check_jb tar xfz ${SRC_DIR}/SIERPINSKYsourcesV${VERSION}.tar.gz -C ${INSTALL_ROOT}
+
+# modify all *.la files
+export SIERPINSKY_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="SIERPINSKY_${VERSION}"
+export PRODUCT_SRC="SIERPINSKY_SRC_${VERSION}"
+export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
+export PRODUCT_SRC_DIR=${INSTALL_ROOT}/${PRODUCT_SRC}
+source ./common.sh
+$PROCEDURE