Translations: Update the Spanish translation.
[xz.git] / autogen.sh
blobeeaf656d79e1fe9bc6e4374cb6adc4f29d82977a
1 #!/bin/sh
2 # SPDX-License-Identifier: 0BSD
4 ###############################################################################
6 # Author: Lasse Collin
8 ###############################################################################
10 set -e -x
12 # The following six lines are almost identical to "autoreconf -fi" but faster.
13 ${AUTOPOINT:-autopoint} -f
14 ${LIBTOOLIZE:-libtoolize} -c -f || glibtoolize -c -f
15 ${ACLOCAL:-aclocal} -I m4
16 ${AUTOCONF:-autoconf}
17 ${AUTOHEADER:-autoheader}
18 ${AUTOMAKE:-automake} -acf --foreign
20 # Generate the translated man pages and the doxygen documentation if the
21 # "po4a" and "doxygen" tools are available.
22 # This is *NOT* done by "autoreconf -fi" or when "make" is run.
23 # Pass --no-po4a or --no-doxygen to this script to skip these steps.
24 # It can be useful when you know that po4a or doxygen aren't available and
25 # don't want autogen.sh to exit with non-zero exit status.
26 generate_po4a="y"
27 generate_doxygen="y"
29 for arg in "$@"
31 case $arg in
32 "--no-po4a")
33 generate_po4a="n"
36 "--no-doxygen")
37 generate_doxygen="n"
39 esac
40 done
42 if test "$generate_po4a" != "n"; then
43 cd po4a
44 sh update-po
45 cd ..
48 if test "$generate_doxygen" != "n"; then
49 cd doxygen
50 sh update-doxygen
51 cd ..
54 exit 0