5 check_lib_version doxygen $PATH
6 if [ "$?" -ne "0" ]; then
9 check_lib_version doxysearch $PATH
10 if [ "$?" -ne "0" ]; then
13 check_lib_version doxytag $PATH
14 if [ "$?" -ne "0" ]; then
17 check_lib_version doxywizard $PATH
18 if [ "$?" -ne "0" ]; then
21 ver=`doxygen --version`
22 if [ "$ver" == "1.3-rc2" ]; then
30 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
31 #$DELIM ${PRODUCT_TYPE} $DELIM
32 export PATH=\${INSTALL_ROOT}/${PRODUCT}/bin:\${PATH}
35 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})
36 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
39 # looks for the native product and collects it's environment (used by make_env())
42 if [ $? -eq 0 ] ; then
43 doxygen="`find_in_path doxygen ${PATH}`"
44 tmp="${doxygen} ${doxygen} \${PATH} ${PATH}";
45 path=`sort_path ${tmp}`
46 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF
47 #$DELIM ${PRODUCT_TYPE} $DELIM
51 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}"
58 try_existing ${PRODUCT_DIR} ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
64 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
65 source ${INSTALL_WORK}/$SHRC
67 check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3-rc2.tar.gz -C ${INSTALL_WORK}
70 makedir ${PRODUCT_DIR}
71 # vsr: fix bug - configure fails on Red Hat 9 because of incorrect autodetect check for install tool
72 # so it is necessary to put it directly
73 f_install="--install "`which install`
74 check_job ${PRODUCT_DIR}/CONFIGURE.LOG ./configure --with-doxywizard --prefix ${PRODUCT_DIR} $f_install
76 cat >> ${PRODUCT_DIR}/MAKE.LOG <<EOF
79 check_job ${PRODUCT_DIR}/MAKE.LOG make
80 check_job ${PRODUCT_DIR}/MAKEINSTALL.LOG make install
82 which epstopdf >/dev/null 2>&1; ISFOUND=$?
83 if [ ${ISFOUND} -eq 0 ] ; then which makeindex >/dev/null 2>&1; ISFOUND=$?; fi
84 if [ ${ISFOUND} -eq 0 ] ; then which latex >/dev/null 2>&1; ISFOUND=$?; fi
85 if [ ${ISFOUND} -eq 0 ] ; then which latex2html >/dev/null 2>&1; ISFOUND=$?; fi
86 if [ ${ISFOUND} -eq 0 ] ; then which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi
87 if [ ${ISFOUND} -eq 0 ] ; then which pslatex >/dev/null 2>&1; ISFOUND=$?; fi
88 if [ ${ISFOUND} -eq 0 ] ; then which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi
89 if [ ${ISFOUND} -eq 0 ] ; then
90 check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs
91 check_job ${PRODUCT_DIR}/MAKEINSTALLDOCS.LOG make install_docs
93 cat >> ${PRODUCT_DIR}/MAKEDOCS.LOG <<EOF
94 Can't find \"epstopdf\" and \"latex\" or another executables on the computer.
95 doxygen documentation will not be built!
96 SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!
98 check_job ${PRODUCT_DIR}/MAKEDOCS.LOG make docs
99 # rm -fr ${PRODUCT_WORK}
100 # echo -e "Can't find \"epstopdf\" and \"latex\" or another executables on the computer."
101 # echo -e "doxygen documentation will not be built!"
102 # echo -e "SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!"
103 # echo -n "Would you like continue : (Y,N) [Y] : "
105 # rep=`echo $rep | tr "[A-Z]" "[a-z]"`
106 # if test -z $rep || [ $rep != "y" ] ; then
107 # rm -fr ${PRODUCT_WORK}
112 #du -sk ${PRODUCT_WORK} > ${PRODUCT_DIR}/size.log
113 cd ${PRODUCT_DIR}; rm -fr ${PRODUCT_WORK}
119 make_env ${INSTALL_ROOT} ${INSTALL_WORK} "${PRODUCT_SEQUENCE}" ${PRODUCT_TYPE}
120 source ${INSTALL_WORK}/$SHRC
122 check_jb tar xfz ${SOURCE_DIR}/doxygen-1.3-rc2.tar.gz -C ${INSTALL_ROOT}
123 which epstopdf >/dev/null 2>&1; ISFOUND=$?
124 if [ ${ISFOUND} -eq 0 ] ; then which makeindex >/dev/null 2>&1; ISFOUND=$?; fi
125 if [ ${ISFOUND} -eq 0 ] ; then which latex >/dev/null 2>&1; ISFOUND=$?; fi
126 if [ ${ISFOUND} -eq 0 ] ; then which latex2html >/dev/null 2>&1; ISFOUND=$?; fi
127 if [ ${ISFOUND} -eq 0 ] ; then which pdflatex >/dev/null 2>&1; ISFOUND=$?; fi
128 if [ ${ISFOUND} -eq 0 ] ; then which pslatex >/dev/null 2>&1; ISFOUND=$?; fi
129 if [ ${ISFOUND} -eq 0 ] ; then which pstoimg >/dev/null 2>&1; ISFOUND=$?; fi
130 if [ ${ISFOUND} -ne 0 ] ; then
131 cat >> ${PRODUCT_DIR}/DOCS.LOG <<EOF
132 Can't find \"epstopdf\" and \"latex\" or another executables on the computer.
133 doxygen documentation will not be built!
134 SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!
136 check_job ${PRODUCT_DIR}/DOCS.LOG make
137 # rm -fr ${PRODUCT_WORK}
138 # echo -e "Can't find \"epstopdf\" and \"latex\" or another executables on the computer."
139 # echo -e "doxygen documentation will not be built!"
140 # echo -e "SALOME DOCUMENTATION ALSO CAN NOT BE BUILT!"
141 # echo -n "Would you like continue : (Y,N) [Y] : "
143 # rep=`echo $rep | tr "[A-Z]" "[a-z]"`
144 # if test -z $rep || [ $rep != "y" ] ; then
145 # rm -fr ${PRODUCT_WORK}
154 export INSTALL_WORK=$2;
155 export SOURCE_DIR=$3;
156 export INSTALL_ROOT=$4;
157 export PRODUCT_SEQUENCE=$5;
158 if [ $# == 6 ] ; then export PRODUCT_TYPE=$6 ; else export PRODUCT_TYPE="doxygen" ; fi
159 export PRODUCT="doxygen-1.3-rc2"
160 export PRODUCT_DIR=${INSTALL_ROOT}/${PRODUCT}
161 export PRODUCT_WORK=${INSTALL_WORK}/${PRODUCT}