From: inv Date: Tue, 3 Apr 2012 16:35:26 +0000 (+0000) Subject: SALOME 6.5.0 preparation: update script for expat (2.0.1) X-Git-Tag: V6_5_0b1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=77b0941c6a23d3d3a7645703351eec552887366a;p=tools%2Finstall.git SALOME 6.5.0 preparation: update script for expat (2.0.1) --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index 8f73384..4ecc4fc 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -597,7 +597,7 @@ version="2.0.1" disable="false" installdiskspace="880,2480,5412" - script="expat-2.0.1.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> + script="expat.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < $l"_" -chmod -f --reference=$l $l"_" ; mv -f $l"_" $l -done - -# to generate environment script for sources -try_preinstalled -} - -export PROCEDURE=$1; -export INSTALL_WORK=$2; -export SOURCE_DIR=$3; -export INST_ROOT=$4; -export PRODUCT_SEQUENCE=$5; -export PRODUCT_TYPE=$6; -export INSTALL_PRODUCTS=$7; -shift -REMOVE_SRC_TMP=$8; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="expat-${EXPAT_VERSION}" -export PRODUCT_DIR=${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}} -export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT} -export PRODUCT_SRC_DIR=${INST_ROOT}/${PRODUCT}_SRC -source ./common.sh -$PROCEDURE diff --git a/config_files/expat.sh b/config_files/expat.sh new file mode 100755 index 0000000..d9c81d2 --- /dev/null +++ b/config_files/expat.sh @@ -0,0 +1,139 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : expat.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-2012 CEA +# +# This script is the part of the SALOME installation procedure. +# +#################################################################################### + +# +# expat version +# +EXPAT_VERSION=2.0.1 + +check_version(){ +if [ "$EXPAT_ROOT" != "" ] && [ -f ${EXPAT_ROOT}/include/expat.h ] ; then + ver_major=`grep "#define XML_MAJOR_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'` + ver_minor=`grep "#define XML_MINOR_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'` + ver_maint=`grep "#define XML_MICRO_VERSION" ${EXPAT_ROOT}/include/expat.h | awk '{print $3}'` + ver="$ver_major.$ver_minor.$ver_maint" + if [ "$ver" == "${EXPAT_VERSION}" ] ; 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 <