Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / solenv / bin / mkonedoc.sh
blob6ec3f5e72625d23c9add35d3f6060f07206d9d48
1 #!/bin/bash
3 module="$1"
4 mode="$2"
5 SRCDIR="$3"
6 BASE_OUTPUT="$4"
9 module_include=""
10 if [ -d "$module/inc" ]; then
11 module_include="$module/inc"
14 if [ -d "include/$module" ]; then
15 module_include="$module_include include/$module"
18 DOXYGEN_INPUT=`printf "%s" "$module/source $module_include"`
19 DOXYGEN_OUTPUT="$BASE_OUTPUT/$module"
20 DOXYGEN_VERSION="master"
21 DOXYGEN_PROJECTNAME="LibreOffice Module $module"
22 if [ "$mode" = "tag" ] ; then
23 DOXYGEN_OUR_TAGFILE="$DOXYGEN_OUTPUT/$module.tags"
24 DOXYGEN_REF_TAGFILES=
25 else
26 DOXYGEN_OUR_TAGFILE="$DOXYGEN_OUTPUT/$module.tags2"
27 DOXYGEN_REF_TAGFILES="$(echo $DOXYGEN_REF_TAGFILES | sed -e "s@$DOXYGEN_OUTPUT/$module.tags@@")"
30 # export variables referenced in doxygen config file
31 export DOXYGEN_INPUT
32 export DOXYGEN_OUTPUT
33 export DOXYGEN_INCLUDE_PATH
34 export DOXYGEN_VERSION
35 export DOXYGEN_OUR_TAGFILE
36 export DOXYGEN_REF_TAGFILES
37 export DOXYGEN_PROJECTNAME
40 echo "Calling doxygen mode $mode for $module"
41 echo "using tagfiles : $DOXYGEN_REF_TAGFILES" >> $BASE_OUTPUT/$module.log 2>&1
42 doxygen "$SRCDIR/solenv/inc/doxygen_$mode.cfg" >> $BASE_OUTPUT/$module.log 2>&1
43 echo "$(date "+%F %T") doxygen $module.$mode rc:$?"