From: inv Date: Fri, 30 Mar 2012 12:20:44 +0000 (+0000) Subject: SALOME 6.5.0 preparation: Sphinx 1.0.7 -> 1.1.3 X-Git-Tag: V6_5_0b1~73 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe50a644c6f76d0ab6e08017f1965d25346164f9;p=tools%2Finstall.git SALOME 6.5.0 preparation: Sphinx 1.0.7 -> 1.1.3 --- diff --git a/config_CentOS_5.5_64bit.xml b/config_CentOS_5.5_64bit.xml index 9c06fc5..3c0ae98 100755 --- a/config_CentOS_5.5_64bit.xml +++ b/config_CentOS_5.5_64bit.xml @@ -630,10 +630,10 @@ type="prerequisite" description="Tool for creation of documentation for Python projects"> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> + script="Sphinx.sh"/> ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh < ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <> ${PRODUCT_DIR}/MAKE.LOG < _easy_install +mv -f _easy_install easy_install +chmod a+x easy_install + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-${PYTHON_VERSION} > _easy_install-${PYTHON_VERSION} +mv -f _easy_install-${PYTHON_VERSION} easy_install-${PYTHON_VERSION} +chmod a+x easy_install-${PYTHON_VERSION} + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize +mv -f _pygmentize pygmentize +chmod a+x pygmentize + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build +mv -f _sphinx-build sphinx-build +chmod a+x sphinx-build + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart +mv -f _sphinx-quickstart sphinx-quickstart +chmod a+x sphinx-quickstart + +sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-autogen > _sphinx-autogen +mv -f _sphinx-autogen sphinx-autogen +chmod a+x sphinx-autogen + +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 ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} + +# 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="Sphinx-${SPHINX_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/sphinx-1.0.7.sh b/config_files/sphinx-1.0.7.sh deleted file mode 100755 index 7938a60..0000000 --- a/config_files/sphinx-1.0.7.sh +++ /dev/null @@ -1,163 +0,0 @@ -#!/bin/bash -noprofile - -#################################################################################### -# File : sphinx-1.0.7.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-2008 CEA -# -# This script is the part of the SALOME installation procedure. -# -#################################################################################### - -# -# Sphinx version -# -SPHINX_VERSION=1.0.7 - -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 <> ${PRODUCT_DIR}/MAKE.LOG < _easy_install -mv -f _easy_install easy_install -chmod a+x easy_install - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" easy_install-${PYTHON_VERSION} > _easy_install-${PYTHON_VERSION} -mv -f _easy_install-${PYTHON_VERSION} easy_install-${PYTHON_VERSION} -chmod a+x easy_install-${PYTHON_VERSION} - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" pygmentize > _pygmentize -mv -f _pygmentize pygmentize -chmod a+x pygmentize - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-build > _sphinx-build -mv -f _sphinx-build sphinx-build -chmod a+x sphinx-build - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-quickstart > _sphinx-quickstart -mv -f _sphinx-quickstart sphinx-quickstart -chmod a+x sphinx-quickstart - -sed -e "s%#\!.*python%#\!/usr/bin/env python%" sphinx-autogen > _sphinx-autogen -mv -f _sphinx-autogen sphinx-autogen -chmod a+x sphinx-autogen - -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 ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${PRODUCT_DIR} - -# 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="sphinx-${SPHINX_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