summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-04-16 12:33:40 +0200
committerMathieu Lirzin <mthl@gnu.org>2017-04-16 12:33:40 +0200
commitfc3afa8fe4d65bfad650b6230e1dc12d391a5477 (patch)
treee93f0d541d60c2bb47798cbb520e40d57c4f7391
parent121f0961b4d851fa980b6b200a0d3fec66987817 (diff)
downloadautomake-fc3afa8fe4d65bfad650b6230e1dc12d391a5477.tar.gz
tests: Never invoke gettextize.
This change fixes automake bug#26514. * t/gettext-macros.sh: Never invoke gettextize.
-rw-r--r--t/gettext-macros.sh41
1 files changed, 16 insertions, 25 deletions
diff --git a/t/gettext-macros.sh b/t/gettext-macros.sh
index 66ae86ff3..10baffa54 100644
--- a/t/gettext-macros.sh
+++ b/t/gettext-macros.sh
@@ -28,28 +28,19 @@ extract_program_version ()
echo "# Automatically generated by $me." > get.sh
echo : >> get.sh
-# The 'gettextize' and 'autopoint' scripts will look into Makefile.am.
+# The 'autopoint' script will look into Makefile.am.
echo ACLOCAL_AMFLAGS = -I m4 > Makefile.am
-# Prefer autopoint to gettextize, since the more modern versions of the
-# latter might unconditionally require user interaction to complete;
-# yes, this means confirmation from /dev/tty (!) -- see:
+# Prefer autopoint to gettextize, since the latter unconditionally
+# requires user interaction to complete; yes, this means confirmation
+# from /dev/tty (!) -- see:
# <http://lists.gnu.org/archive/html/bug-gettext/2011-12/msg00000.html>
-# Since this "forced interaction" behaviour of gettextize wasn't present
-# before the introduction of autopoint, we should be able to safely
-# fall back to calling gettextize non-interactively if autopoint is not
-# present.
-if autopoint --version; then
- am_gettextize_command=autopoint
-else
- am_gettextize_command=gettextize
-fi
-# We will need to specify the correct autopoint (or gettextize) version
-# in the AM_GNU_GETTEXT_VERSION call in configure.ac if we want autopoint
-# (or gettextize) to setup the correct infrastructure -- in particular,
-# for what concerns us, to bring in all the required .m4 files.
-autopoint_version=$(extract_program_version $am_gettextize_command) \
+# We will need to specify the correct autopoint version in the
+# AM_GNU_GETTEXT_VERSION call in configure.ac if we want autopoint to
+# setup the correct infrastructure -- in particular, for what concerns
+# us, to bring in all the required .m4 files.
+autopoint_version=$(extract_program_version autopoint) \
&& test -n "$autopoint_version" \
|| autopoint_version=0.10.35
@@ -61,11 +52,11 @@ AM_GNU_GETTEXT
AM_GNU_GETTEXT_VERSION([$autopoint_version])
END
-if $am_gettextize_command --force && test -f m4/gettext.m4; then
+if autopoint --force && test -f m4/gettext.m4; then
echo "ACLOCAL_PATH='$(pwd)/m4':\$ACLOCAL_PATH" >> get.sh
echo "export ACLOCAL_PATH" >> get.sh
else
- # Older versions of gettext might not have a gettextize program
+ # Older versions of gettext might not have an autopoint program
# available, but this doesn't mean the user hasn't made the gettext
# macros available, e.g., by properly setting ACLOCAL_PATH.
rm -rf m4
@@ -93,13 +84,13 @@ $ACLOCAL --force -I m4 || cat >> get.sh <<'END'
ACLOCAL="$ACLOCAL -Wno-syntax"
END
-# Remove any Makefile.in possibly created by gettextize/autopoint, to
-# avoid spurious maintainer-check failures.
+# Remove any Makefile.in possibly created by autopoint, to avoid spurious
+# maintainer-check failures.
rm -f $(find . -name Makefile.in)
-# The file gettextize or autopoint might have copied in the 'm4'
-# subdirectory of the test directory are going to be needed by
-# other tests, so we must not remove the test directory.
+# The file autopoint might have copied in the 'm4' subdirectory of the
+# test directory are going to be needed by other tests, so we must not
+# remove the test directory.
keep_testdirs=yes
: