xz/autogen.sh

43 lines
1004 B
Bash
Raw Permalink Normal View History

2007-12-08 22:42:33 +00:00
#!/bin/sh
# SPDX-License-Identifier: 0BSD
2007-12-08 22:42:33 +00:00
###############################################################################
#
# Author: Lasse Collin
#
###############################################################################
2007-12-08 22:42:33 +00:00
set -e -x
# The following six lines are almost identical to "autoreconf -fi" but faster.
${AUTOPOINT:-autopoint} -f
${LIBTOOLIZE:-libtoolize} -c -f || glibtoolize -c -f
${ACLOCAL:-aclocal} -I m4
${AUTOCONF:-autoconf}
${AUTOHEADER:-autoheader}
${AUTOMAKE:-automake} -acf --foreign
# Generate the translated man pages if the "po4a" tool is available.
# This is *NOT* done by "autoreconf -fi" or when "make" is run.
# 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.
generate_po4a="y"
for arg in "$@"
do
case $arg in
"--no-po4a")
generate_po4a="n"
;;
esac
done
if test "$generate_po4a" != "n"; then
cd po4a
sh update-po
cd ..
fi
exit 0