]> git.ipfire.org Git - thirdparty/xz.git/blob - autogen.sh
Translations: Update the Romanian man page translations.
[thirdparty/xz.git] / autogen.sh
1 #!/bin/sh
2
3 ###############################################################################
4 #
5 # Author: Lasse Collin
6 #
7 # This file has been put into the public domain.
8 # You can do whatever you want with this file.
9 #
10 ###############################################################################
11
12 set -e -x
13
14 # The following six lines are almost identical to "autoreconf -fi" but faster.
15 ${AUTOPOINT:-autopoint} -f
16 ${LIBTOOLIZE:-libtoolize} -c -f || glibtoolize -c -f
17 ${ACLOCAL:-aclocal} -I m4
18 ${AUTOCONF:-autoconf}
19 ${AUTOHEADER:-autoheader}
20 ${AUTOMAKE:-automake} -acf --foreign
21
22 # Generate the translated man pages and the doxygen documentation if the
23 # "po4a" and "doxygen" tools are available.
24 # This is *NOT* done by "autoreconf -fi" or when "make" is run.
25 # Pass --no-po4a or --no-doxygen to this script to skip these steps.
26 # It can be useful when you know that po4a or doxygen aren't available and
27 # don't want autogen.sh to exit with non-zero exit status.
28 generate_po4a="y"
29 generate_doxygen="y"
30
31 for arg in "$@"
32 do
33 case $arg in
34 "--no-po4a")
35 generate_po4a="n"
36 ;;
37
38 "--no-doxygen")
39 generate_doxygen="n"
40 ;;
41 esac
42 done
43
44 if test "$generate_po4a" != "n"; then
45 cd po4a
46 sh update-po
47 cd ..
48 fi
49
50 if test "$generate_doxygen" != "n"; then
51 cd doxygen
52 sh update-doxygen
53 cd ..
54 fi
55
56 exit 0