2007-12-08 22:42:33 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-04-13 08:27:40 +00:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Author: Lasse Collin
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2007-12-08 22:42:33 +00:00
|
|
|
set -e -x
|
|
|
|
|
2020-02-07 13:32:21 +00:00
|
|
|
# The following six lines are almost identical to "autoreconf -fi" but faster.
|
2009-06-26 11:20:02 +00:00
|
|
|
${AUTOPOINT:-autopoint} -f
|
|
|
|
${LIBTOOLIZE:-libtoolize} -c -f || glibtoolize -c -f
|
|
|
|
${ACLOCAL:-aclocal} -I m4
|
|
|
|
${AUTOCONF:-autoconf}
|
|
|
|
${AUTOHEADER:-autoheader}
|
|
|
|
${AUTOMAKE:-automake} -acf --foreign
|
2020-02-07 13:32:21 +00:00
|
|
|
|
2023-03-16 13:37:32 +00:00
|
|
|
# Generate the translated man pages and the doxygen documentation if the
|
|
|
|
# "po4a" and "doxygen" tools are available.
|
2020-02-07 13:32:21 +00:00
|
|
|
# This is *NOT* done by "autoreconf -fi" or when "make" is run.
|
2023-03-16 13:37:32 +00:00
|
|
|
# Pass --no-po4a or --no-doxygen to this script to skip these steps.
|
|
|
|
# It can be useful when you know that po4a or doxygen aren't available and
|
|
|
|
# don't want autogen.sh to exit with non-zero exit status.
|
|
|
|
generate_po4a="y"
|
|
|
|
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
|
2020-02-27 18:24:27 +00:00
|
|
|
cd po4a
|
|
|
|
sh update-po
|
2023-03-16 13:37:32 +00:00
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test "$generate_doxygen" != "n"; then
|
|
|
|
cd doxygen
|
|
|
|
sh update-doxygen
|
|
|
|
cd ..
|
2020-02-27 18:24:27 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|