From: inv Date: Tue, 8 Jun 2010 12:17:55 +0000 (+0000) Subject: Replacing sphinx 0.6.3 by 0.6.6 X-Git-Tag: V6_1_0~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=829d6c217a65dc1c1a717b60818ba24d5e010862;p=tools%2Finstall.git Replacing sphinx 0.6.3 by 0.6.6 --- diff --git a/config_Debian_4.0.xml b/config_Debian_4.0.xml index cba9286..8aab6b9 100755 --- a/config_Debian_4.0.xml +++ b/config_Debian_4.0.xml @@ -542,10 +542,10 @@ type="prerequisite" description="Tool for creation of documentation for Python projects"> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.sh"/> + script="sphinx-0.6.6.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-0.6.6.sh b/config_files/sphinx-0.6.6.sh new file mode 100755 index 0000000..3a503c4 --- /dev/null +++ b/config_files/sphinx-0.6.6.sh @@ -0,0 +1,161 @@ +#!/bin/bash -noprofile + +#################################################################################### +# File : sphinx-0.6.6.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=0.6.6 + +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