mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
Build: Generate doxygen documentation in autogen.sh.
Another command line option (--no-doxygen) was added to disable creating the doxygen documenation in cases where it not wanted or if the doxygen tool is not installed.
This commit is contained in:
parent
1321852a3b
commit
16f2125559
1 changed files with 29 additions and 6 deletions
35
autogen.sh
35
autogen.sh
|
@ -19,15 +19,38 @@ ${AUTOCONF:-autoconf}
|
||||||
${AUTOHEADER:-autoheader}
|
${AUTOHEADER:-autoheader}
|
||||||
${AUTOMAKE:-automake} -acf --foreign
|
${AUTOMAKE:-automake} -acf --foreign
|
||||||
|
|
||||||
# Generate the translated man pages if the "po4a" tool is available.
|
# Generate the translated man pages and the doxygen documentation if the
|
||||||
|
# "po4a" and "doxygen" tools are available.
|
||||||
# This is *NOT* done by "autoreconf -fi" or when "make" is run.
|
# This is *NOT* done by "autoreconf -fi" or when "make" is run.
|
||||||
#
|
# Pass --no-po4a or --no-doxygen to this script to skip these steps.
|
||||||
# Pass --no-po4a to this script to skip this step. It can be useful when
|
# It can be useful when you know that po4a or doxygen aren't available and
|
||||||
# you know that po4a isn't available and don't want autogen.sh to exit
|
# don't want autogen.sh to exit with non-zero exit status.
|
||||||
# with non-zero exit status.
|
generate_po4a="y"
|
||||||
if test "x$1" != "x--no-po4a"; then
|
generate_doxygen="y"
|
||||||
|
|
||||||
|
for arg in "$@"
|
||||||
|
do
|
||||||
|
case $arg in
|
||||||
|
"--no-po4a")
|
||||||
|
generate_po4a="n"
|
||||||
|
;;
|
||||||
|
|
||||||
|
"--no-doxygen")
|
||||||
|
generate_doxygen="n"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if test "$generate_po4a" != "n"; then
|
||||||
cd po4a
|
cd po4a
|
||||||
sh update-po
|
sh update-po
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$generate_doxygen" != "n"; then
|
||||||
|
cd doxygen
|
||||||
|
sh update-doxygen
|
||||||
|
cd ..
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue