2007-12-08 23:42:33 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2009-04-13 10:27:40 +02:00
|
|
|
###############################################################################
|
|
|
|
#
|
|
|
|
# Author: Lasse Collin
|
|
|
|
#
|
|
|
|
# This file has been put into the public domain.
|
|
|
|
# You can do whatever you want with this file.
|
|
|
|
#
|
|
|
|
###############################################################################
|
|
|
|
|
2007-12-08 23:42:33 +01:00
|
|
|
set -e -x
|
|
|
|
|
2020-02-07 14:32:21 +01:00
|
|
|
# The following six lines are almost identical to "autoreconf -fi" but faster.
|
2009-06-26 13:20:02 +02: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 14:32:21 +01:00
|
|
|
|
|
|
|
# Generate the translated man pages if the "po4a" tool is available.
|
|
|
|
# This is *NOT* done by "autoreconf -fi" or when "make" is run.
|
2020-02-27 19:24:27 +01:00
|
|
|
#
|
|
|
|
# Pass --no-po4a to this script to skip this step. It can be useful when
|
|
|
|
# you know that po4a isn't available and don't want autogen.sh to exit
|
|
|
|
# with non-zero exit status.
|
|
|
|
if test "x$1" != "x--no-po4a"; then
|
|
|
|
cd po4a
|
|
|
|
sh update-po
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|