From: inv Date: Tue, 3 Apr 2012 11:59:04 +0000 (+0000) Subject: SALOME 6.5.0 preparation: scotch 5.1.11 -> 5.1.12, for metis add support of metis... X-Git-Tag: V6_5_0b1~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9e4b655de2f1d1799ef6b6c4a6b81b755517db8c;p=tools%2Finstall.git SALOME 6.5.0 preparation: scotch 5.1.11 -> 5.1.12, for metis add support of metis 5x (for 5.0.2) --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index ecfc5e6..25a3deb 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -552,16 +552,16 @@ version="4.0" disable="false" installdiskspace="2856,2184,7064" - script="metis-4.0.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> + script="metis.sh"/> + script="scotch.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Makefile.in.new - mv Makefile.in.new Makefile.in -fi - -# make -check_job ${PRODUCT_DIR}/MAKE.LOG make - -# install -cp -rf Doc Graphs libmetis.a pmetis kmetis oemetis onmetis partdmesh partnmesh mesh2dual mesh2nodal graphchk ${PRODUCT_DIR} -( mkdir -p ${PRODUCT_DIR}/Lib && cp Lib/*.h ${PRODUCT_DIR}/Lib ) - -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR} -fi - -# to generate environment scripts -try_preinstalled -} - -install_binary() -{ -make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE} -source ${INSTALL_WORK}/$SHRC - -# create a product directory -test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} - -check_jb tar xfz ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} - -# to generate environment scripts -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; -SRC_DIR=$8; -REMOVE_SRC_TMP=$9; -shift -BIN_DIR=$9; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="metis-4.0" -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/metis.sh b/config_files/metis.sh new file mode 100755 index 0000000..4b0a302 --- /dev/null +++ b/config_files/metis.sh @@ -0,0 +1,142 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : metis.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. +# +#################################################################################### + +# +# metis version +# +METIS_VERSION=4.0 +# 5.0.2 +METIS_MAJOR_VERSION=`echo ${METIS_VERSION} | awk -F. '{print $1}'` + +check_version(){ +# No way to check version! +return 0 +} + +print_env_bin() +{ +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 < Make.inc/Makefile.inc.x86_64_pc_linux2.prof - ln -sf Make.inc/Makefile.inc.x86_64_pc_linux2.prof Makefile.inc -else - ln -sf Make.inc/Makefile.inc.i686_pc_linux2.prof Makefile.inc -fi - -sed -e "s%gmake%make%" Makefile.inc > _Makefile.inc -mv -f _Makefile.inc Makefile.inc -chmod a+x Makefile.inc - -chmod +w ./Makefile -sed -i 's/\/usr\/local/\$\(PRODUCT_DIR\)/g' ./Makefile - -# make -check_job ${PRODUCT_DIR}/MAKE.LOG make - -# make install -check_job ${PRODUCT_DIR}/INSTALL.LOG make install - -# install -#cd ${PRODUCT_SRC_DIR} -#cp -rf bin doc grf tgt ${PRODUCT_DIR} - -cd ${PRODUCT_DIR}; - -# remove sources and temporary files after building -if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then - test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR} -fi - -# to generate environment scripts -try_preinstalled -} - -install_binary() -{ -make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE} -source ${INSTALL_WORK}/$SHRC - -# create a product directory -test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} - -check_jb tar xfz ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} - -# to generate environment scripts -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; -SRC_DIR=$8; -REMOVE_SRC_TMP=$9; -shift -BIN_DIR=$9; -test $# == 10 && shift && SINGLE_DIR=$9 -export PRODUCT="scotch-5.1.11" -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/scotch.sh b/config_files/scotch.sh new file mode 100755 index 0000000..31be940 --- /dev/null +++ b/config_files/scotch.sh @@ -0,0 +1,130 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : scotch.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. +# +#################################################################################### + +# +# scotch version +# +SCOTCH_VERSION=5.1.12 + +check_version(){ +# No way to check version! +return 0 +} + +print_env_bin() +{ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < Make.inc/Makefile.inc.x86-64_pc_linux2.prof + ln -sf Make.inc/Makefile.inc.x86-64_pc_linux2.prof Makefile.inc +else + ln -sf Make.inc/Makefile.inc.i686_pc_linux2.prof Makefile.inc +fi + +# make +check_job ${PRODUCT_DIR}/MAKE.LOG make prefix=${PRODUCT_DIR} + +# make install +check_job ${PRODUCT_DIR}/INSTALL.LOG make prefix=${PRODUCT_DIR} install + +cd ${PRODUCT_DIR}; + +# remove sources and temporary files after building +if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then + test -d ${PRODUCT_SRC_DIR} && rm -fr ${PRODUCT_SRC_DIR} +fi + +# to generate environment scripts +try_preinstalled +} + +install_binary() +{ +make_env ${INST_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE} +source ${INSTALL_WORK}/$SHRC + +# create a product directory +test -z ${SINGLE_DIR} && makedir ${PRODUCT_DIR} || mkdir -p ${PRODUCT_DIR} + +check_jb tar xfz ${BIN_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} + +# to generate environment scripts +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="scotch-${SCOTCH_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