From: maintenance team Date: Fri, 26 Oct 2007 08:48:51 +0000 (+0000) Subject: Upadte for salome 4.x X-Git-Tag: V_4_1_1~118 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3167cd10ce4ef264b35663d9d4b863901cf88333;p=tools%2Finstall.git Upadte for salome 4.x --- diff --git a/config_files/SWIG-1.3.24.sh b/config_files/SWIG-1.3.24.sh deleted file mode 100755 index 56e7139..0000000 --- a/config_files/SWIG-1.3.24.sh +++ /dev/null @@ -1,120 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : SWIG-1.3.24.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. -# -#################################################################################### - -check_version(){ -if [ -n "`which swig 2>/dev/null`" ]; then - ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` - if [ "$ver" == "1.3.24" ] ; then - return 0; - fi -fi -return 1; -} - -print_env_bin() -{ -cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC -fi - -# to generate environment scripts -try_preinstalled -} - -install_binary() -{ -echo "It impossible to install ${PRODUCT} from binaries! So this one will be build from sources." -install_source_and_build -} - -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="swig-1.3.24" -export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} -export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} -source ./common.sh -$PROCEDURE diff --git a/config_files/SWIG-1.3.31.sh b/config_files/SWIG-1.3.31.sh new file mode 100755 index 0000000..92d4fff --- /dev/null +++ b/config_files/SWIG-1.3.31.sh @@ -0,0 +1,120 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : SWIG-1.3.31.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. +# +#################################################################################### + +check_version(){ +if [ -n "`which swig 2>/dev/null`" ]; then + ver=`swig -version 2>&1 | grep -i version | awk '{ print $3 }' | sed -e 's/^\([0-9.]*\)\(.*\)/\1/'` + if [ "$ver" == "1.3.31" ] ; then + return 0; + fi +fi +return 1; +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < ${PRODUCT_DIR}/size.log +cd ${PRODUCT_DIR}; + +# remove sources and temporary files after building +if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then + test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC +fi + +# to generate environment scripts +try_preinstalled +} + +install_binary() +{ +echo "It impossible to install ${PRODUCT} from binaries! So this one will be build from sources." +install_source_and_build +} + +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="SWIG-1.3.31" +export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT} +export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} +source ./common.sh +$PROCEDURE