3 ####################################################################################
4 # File : doxygen-1.4.6.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 ####################################################################################
17 check_lib_version doxygen $PATH
18 if [ "$?" -ne "0" ]; then
21 ver=`doxygen --version`
22 maj_ver=`echo $ver | awk -F. '{if(NF>0) print $1; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
23 min_ver=`echo $ver | awk -F. '{if(NF>1) print $2; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
24 rel_ver=`echo $ver | awk -F. '{if(NF>2) print $3; else print 0}' | sed -e 's/^\([0-9]*\).*$/\1/'`
25 let ver=$maj_ver*10000+$min_ver*100+$rel_ver
26 if [ $ver -eq 10406 ] ; then
34 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
35 #$DELIM ${PRODUCT_TYPE} $DELIM
36 export PATH=\${INSTALL_ROOT}/${PRODUCT}/bin:\${PATH}
39 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
40 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
45 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh <<EOF
46 #$DELIM ${PRODUCT_TYPE}_src $DELIM
50 (test -w ${PRODUCT_DIR}_SRC && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}_src.sh ${PRODUCT_DIR}_SRC)
51 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}"
55 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
56 try_existing ${PRODUCT_DIR}_SRC ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
62 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}_src
63 source ${INSTALL_WORK}/$SHRC
66 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
68 # to generate environment scripts
72 install_source_and_build()
79 makedir ${PRODUCT_DIR}
80 # vsr: fix a bug on Mandrake-10.1: wrong qt library reference
81 sed -e "s/-lqt$/-lqt-mt/g" ./tmake/lib/linux-g++/tmake.conf > ./tmake/lib/linux-g++/tmake.conf.new
82 mv ./tmake/lib/linux-g++/tmake.conf.new ./tmake/lib/linux-g++/tmake.conf
83 # vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool
84 # so it is necessary to put it directly
85 f_install="--install "`which install`
86 # vsr: removed --with-doxywizard option (not compilable on some platforms)
87 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --prefix ${PRODUCT_DIR} $f_install
89 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
92 check_job ${PRODUCT_DIR}/MAKE.LOG make
93 check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
95 #vsr : disable make docs steps because of bugs in make procedure
96 #which epstopdf >/dev/null 2>&1; ISFOUND=$?
97 #if [ ${ISFOUND} -eq 0 ] ; then which dot >/dev/null 2>&1; ISFOUND=$?; fi
98 #if [ ${ISFOUND} -eq 0 ] ; then which makeindex >/dev/null 2>&1; ISFOUND=$?; fi
99 #if [ ${ISFOUND} -eq 0 ] ; then which latex >/dev/null 2>&1; ISFOUND=$?; fi
100 ##if [ ${ISFOUND} -eq 0 ] ; then which latex2html >/dev/null 2>&1; ISFOUND=$?; fi
101 #if [ ${ISFOUND} -eq 0 ] ; then which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi
102 #if [ ${ISFOUND} -eq 0 ] ; then which pslatex >/dev/null 2>&1; ISFOUND=$?; fi
103 ##if [ ${ISFOUND} -eq 0 ] ; then which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi
104 #if [ ${ISFOUND} -eq 0 ] ; then
105 # check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs
106 # check_job ${PRODUCT_DIR}/MAKEINSTALLDOCS.LOG make install_docs
108 # cat >> ${PRODUCT_DIR}/MAKEDOCS.LOG <<EOF
109 #Can't find \"epstopdf\", \"latex\" or another documentation tool on the computer.
110 #doxygen documentation can not be built!
111 #SALOME DOCUMENTATION MIGHT NOT BE BUILT ALSO!
115 #du -sk ${PRODUCT_DIR}_SRC > ${PRODUCT_DIR}/size.log
118 # remove sources and temporary files after building
119 if [ ${REMOVE_SRC_TMP} == "TRUE" ] ; then
120 test -d ${PRODUCT_DIR}_SRC && rm -fr ${PRODUCT_DIR}_SRC
123 # to generate environment scripts
129 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" "${INSTALL_PRODUCTS}" ${PRODUCT_TYPE}
130 source ${INSTALL_WORK}/$SHRC
132 check_jb tar xfz ${SOURCE_DIR}/${PRODUCT}.tar.gz -C ${INSTALL_ROOT}
134 # to generate environment script for sources
139 export INSTALL_WORK=$2;
140 export SOURCE_DIR=$3;
141 export INSTALL_ROOT=$4;
142 export PRODUCT_SEQUENCE=$5;
143 export PRODUCT_TYPE=$6;
144 export INSTALL_PRODUCTS=$7;
147 export PRODUCT="doxygen-1.4.6"
148 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
149 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}