]> git.ipfire.org Git - thirdparty/xz.git/blame - autogen.sh
Translations: Update the German translation.
[thirdparty/xz.git] / autogen.sh
CommitLineData
5d018dc0 1#!/bin/sh
22af9412 2# SPDX-License-Identifier: 0BSD
5d018dc0 3
02ddf09b
LC
4###############################################################################
5#
6# Author: Lasse Collin
7#
02ddf09b
LC
8###############################################################################
9
5d018dc0
LC
10set -e -x
11
6f7211b6 12# The following six lines are almost identical to "autoreconf -fi" but faster.
d45615c5
LC
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
6f7211b6 19
16f21255
JT
20# Generate the translated man pages and the doxygen documentation if the
21# "po4a" and "doxygen" tools are available.
6f7211b6 22# This is *NOT* done by "autoreconf -fi" or when "make" is run.
16f21255
JT
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.
26generate_po4a="y"
27generate_doxygen="y"
28
29for arg in "$@"
30do
31 case $arg in
32 "--no-po4a")
33 generate_po4a="n"
34 ;;
35
36 "--no-doxygen")
37 generate_doxygen="n"
38 ;;
39 esac
40done
41
42if test "$generate_po4a" != "n"; then
7c8b9045
LC
43 cd po4a
44 sh update-po
16f21255
JT
45 cd ..
46fi
47
48if test "$generate_doxygen" != "n"; then
49 cd doxygen
50 sh update-doxygen
51 cd ..
7c8b9045
LC
52fi
53
54exit 0