From: maintenance team Date: Thu, 25 Oct 2007 09:53:01 +0000 (+0000) Subject: Update for Salome series4x X-Git-Tag: V_4_1_1~123 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af32de5ebb7308cf5c519c8d17d93c96d9a8b409;p=tools%2Finstall.git Update for Salome series4x --- diff --git a/config_files/BLSURFPLUGIN.sh b/config_files/BLSURFPLUGIN.sh new file mode 100755 index 0000000..88f83f7 --- /dev/null +++ b/config_files/BLSURFPLUGIN.sh @@ -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 < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < $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