aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2020-02-27 20:24:27 +0200
committerLasse Collin <lasse.collin@tukaani.org>2020-03-11 12:05:57 +0200
commit9acc6abea1552803c74c1486fbb10af119550772 (patch)
tree60afa64f02e429971526ee6c8b07c424fd62f520
parentUpdate m4/.gitignore. (diff)
downloadxz-9acc6abea1552803c74c1486fbb10af119550772.tar.xz
Build: Add support for --no-po4a option to autogen.sh.
Normally, if po4a isn't available, autogen.sh will return with non-zero exit status. The option --no-po4a can be useful when one knows that po4a isn't available but wants autogen.sh to still return with zero exit status.
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index fb8d983f..020c365c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -21,4 +21,13 @@ ${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.
-cd po4a && sh update-po
+#
+# 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