From: inv Date: Fri, 30 Mar 2012 14:26:10 +0000 (+0000) Subject: SALOME 6.5.0 preparation: docutils 0.7.0 -> 0.8.1 X-Git-Tag: V6_5_0b1~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=97c864d4cc202ed9d770c9f29158dfcd39007f1d;p=tools%2Finstall.git SALOME 6.5.0 preparation: docutils 0.7.0 -> 0.8.1 --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index d2fe274..68ff431 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -621,10 +621,10 @@ type="prerequisite" description="Utilites for processing plaintext documentation"> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> + script="docutils.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh < _${f}.py - mv -f _${f}.py ${f}.py - chmod a+x ${f}.py - ln -sf ${f}.py ${f} -done - -# 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 ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} -cd ${PRODUCT_DIR}/bin; - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2latex.py > _rst2latex.py -mv -f _rst2latex.py rst2latex.py -chmod a+x rst2latex.py -ln -sf rst2latex.py rst2latex - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py -mv -f _rst2html.py rst2html.py -chmod a+x rst2html.py -ln -sf rst2html.py rst2html - -# 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="docutils-${DOCUTILS_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/docutils.sh b/config_files/docutils.sh new file mode 100755 index 0000000..821cc0f --- /dev/null +++ b/config_files/docutils.sh @@ -0,0 +1,121 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : docutils.sh +# Created : Mon Oct 12 11:20:00 2009 +# 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. +# +#################################################################################### + +# +# docutils version +# +DOCUTILS_VERSION=0.8.1 + +check_version(){ +# It is not necessary to check version! +return 0 +} + +print_env_bin(){ +cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <