3 ####################################################################################
4 # File : docutils-0.3.7.sh
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 ####################################################################################
16 # It is not necessary to check version!
21 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
22 #$DELIM ${PRODUCT_TYPE} $DELIM
23 export PYTHONPATH=\${INSTALL_ROOT}/${PRODUCT}/lib/python\${PYTHON_VERSION}/site-packages:\${PYTHONPATH}
24 export PATH=\${INSTALL_ROOT}/${PRODUCT}/bin:\${PATH}
27 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
28 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
36 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
42 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
43 source ${INSTALL_WORK}/$SHRC
45 makedir ${PRODUCT_DIR}
47 check_jb tar xfz ${SOURCE_DIR}/docutils-0.3.7.tar.gz -C ${INSTALL_WORK}
48 cd ${PRODUCT_WORK} ; python setup.py install --prefix=${PRODUCT_DIR}
50 cd ${PRODUCT_DIR}/bin;
52 sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2latex.py > _rst2latex.py
53 mv -f _rst2latex.py rst2latex.py
54 chmod a+x rst2latex.py
55 ln -sf rst2latex.py rst2latex
57 sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py
58 mv -f _rst2html.py rst2html.py
60 ln -sf rst2html.py rst2html
62 if test `uname -m` = "x86_64" ; then
63 cd ${PRODUCT_DIR}; ln -sf lib64 lib
66 rm -fr ${PRODUCT_WORK}
73 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
74 source ${INSTALL_WORK}/$SHRC
76 check_jb tar xfz ${SOURCE_DIR}/docutils-0.3.7.tar.gz -C ${INSTALL_ROOT}
77 cd ${PRODUCT_DIR}/bin;
79 sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2latex.py > _rst2latex.py
80 mv -f _rst2latex.py rst2latex.py
81 chmod a+x rst2latex.py
82 ln -sf rst2latex.py rst2latex
84 sed -e "s%#\!.*python%#\!/usr/bin/env python%" rst2html.py > _rst2html.py
85 mv -f _rst2html.py rst2html.py
87 ln -sf rst2html.py rst2html
93 export INSTALL_WORK=$2;
95 export INSTALL_ROOT=$4;
96 export PRODUCT_SEQUENCE=$5;
97 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="docutils" ; fi
98 export PRODUCT="docutils-0.3.7"
99 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
100 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}