summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-07-28 14:32:43 +0900
committerDaiki Ueno <ueno@gnu.org>2015-07-28 14:36:34 +0900
commit712d6770504fd326a45d3e0bd101484e984f8150 (patch)
treea7590032bd6618295f4a28b9c428a184cd1ce1bb
parent733283cfc3a631e594e67065a27e3c547d1e6639 (diff)
downloadgettext-712d6770504fd326a45d3e0bd101484e984f8150.tar.gz
build: Substitute archive version with configure
* gettext-tools/configure.ac (ARCHIVE_VERSION): New substituted variable. * gettext-tools/misc/gettextize.in (archive_version): New variable, set to ARCHIVE_VERSION. Use it as the argument of AM_GNU_GETTEXT_VERSION. * gettext-tools/tests/init-env.in (ARCHIVE_VERSION): New substituted variable. * gettext-tools/tests/autopoint-2: Use ARCHIVE_VERSION, instead of the hard-coded version string. * gettext-tools/tests/autopoint-3: Likewise.
-rw-r--r--Admin/release-steps12
-rw-r--r--gettext-tools/ChangeLog4
-rw-r--r--gettext-tools/configure.ac3
-rw-r--r--gettext-tools/misc/ChangeLog6
-rw-r--r--gettext-tools/misc/gettextize.in6
-rw-r--r--gettext-tools/tests/ChangeLog7
-rwxr-xr-xgettext-tools/tests/autopoint-212
-rwxr-xr-xgettext-tools/tests/autopoint-316
-rw-r--r--gettext-tools/tests/init-env.in1
9 files changed, 34 insertions, 33 deletions
diff --git a/Admin/release-steps b/Admin/release-steps
index 1eab4d353..c568442f3 100644
--- a/Admin/release-steps
+++ b/Admin/release-steps
@@ -112,17 +112,13 @@ Release procedure
* Update autopoint related files:
- - gettext-tools/misc/autopoint.in
-
- Update the case statement to include the latest release.
+ - gettext-tools/configure.ac
- - gettext-tools/tests/autopoint-[23]
+ Update ARCHIVE_VERSION
- Update required_gettext_version.
-
- - gettext-tools/misc/gettextize.in
+ - gettext-tools/misc/autopoint.in
- Update gettext_version.
+ Update the case statement to include the latest release.
and commit the changes.
diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog
index a253ac51e..db5ff2aee 100644
--- a/gettext-tools/ChangeLog
+++ b/gettext-tools/ChangeLog
@@ -1,3 +1,7 @@
+2015-07-28 Daiki Ueno <ueno@gnu.org>
+
+ * configure.ac (ARCHIVE_VERSION): New substituted variable.
+
2015-07-10 Daiki Ueno <ueno@gnu.org>
* gettext 0.19.5 released.
diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac
index bbc0f5088..ff0f2d10f 100644
--- a/gettext-tools/configure.ac
+++ b/gettext-tools/configure.ac
@@ -458,6 +458,9 @@ changequote([,])dnl
fi
AC_SUBST([ARCHIVE_FORMAT])
+ARCHIVE_VERSION=0.19.5
+AC_SUBST([ARCHIVE_VERSION])
+
dnl Check for tools needed for formatting the documentation.
ac_aux_dir_abs=`cd $ac_aux_dir && pwd`
AC_PATH_PROG([DVIPS], [dvips], [$ac_aux_dir_abs/missing dvips])
diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog
index 62d550a68..53c25ccf3 100644
--- a/gettext-tools/misc/ChangeLog
+++ b/gettext-tools/misc/ChangeLog
@@ -1,3 +1,9 @@
+2015-07-28 Daiki Ueno <ueno@gnu.org>
+
+ * gettextize.in (archive_version): New variable, set to
+ ARCHIVE_VERSION. Use it as the argument of
+ AM_GNU_GETTEXT_VERSION.
+
2015-07-27 Daiki Ueno <ueno@gnu.org>
gettextize: Use a crafted version string
diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in
index 6562097b3..bd7eb929e 100644
--- a/gettext-tools/misc/gettextize.in
+++ b/gettext-tools/misc/gettextize.in
@@ -23,7 +23,7 @@
progname=$0
package=@PACKAGE@
version=@VERSION@
-gettext_version=0.19.5
+archive_version=@ARCHIVE_VERSION@
# Set variables
# - gettext_datadir directory where the data files are stored.
@@ -1236,8 +1236,8 @@ sed -e 's%sed -e "/POTFILES =/r po/POTFILES" po/Makefile\.in > po/Makefile *;* *
func_modify_configure_in "(AC_OUTPUT): Remove command that created po/Makefile."
sed -e '/^\(dnl \|\)AC_LINK_FILES(\$nls_cv_header_libgt, \$nls_cv_header_intl)$/d' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
func_modify_configure_in "(AC_LINK_FILES): Remove invocation."
-sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"$gettext_version"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
-func_modify_configure_in "(AM_GNU_GETTEXT_VERSION): Bump to $gettext_version."
+sed -e 's/^AM_GNU_GETTEXT_VERSION([^()]*)/AM_GNU_GETTEXT_VERSION(['"$archive_version"'])/' < "$srcdir/$configure_in" > "$srcdir/$configure_in.tmp"
+func_modify_configure_in "(AM_GNU_GETTEXT_VERSION): Bump to $archive_version."
$do_changelog && func_ChangeLog_finish
# Recommend replacement for deprecated Makefile variables.
diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog
index 024c7cba1..042886ed6 100644
--- a/gettext-tools/tests/ChangeLog
+++ b/gettext-tools/tests/ChangeLog
@@ -1,3 +1,10 @@
+2015-07-28 Daiki Ueno <ueno@gnu.org>
+
+ * init-env.in (ARCHIVE_VERSION): New substituted variable.
+ * autopoint-2: Use ARCHIVE_VERSION, instead of the hard-coded
+ version string.
+ * autopoint-3: Likewise.
+
2015-07-10 Daiki Ueno <ueno@gnu.org>
* gettext 0.19.5 released.
diff --git a/gettext-tools/tests/autopoint-2 b/gettext-tools/tests/autopoint-2
index f58132ef8..c807b3a5d 100755
--- a/gettext-tools/tests/autopoint-2
+++ b/gettext-tools/tests/autopoint-2
@@ -3,8 +3,6 @@
# Test the autopoint program, without Automake.
-required_gettext_version=0.19.5
-
: ${AUTOCONF=autoconf}
${AUTOCONF} --version >/dev/null 2>/dev/null \
|| { echo "Skipping test: autoconf not found"; exit 77; }
@@ -29,7 +27,7 @@ AC_CONFIG_AUX_DIR([build-aux])
AC_PROG_CC
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([po/Makefile.in])
@@ -57,7 +55,7 @@ AC_CONFIG_SRCDIR(hello.c)
AC_PROG_CC
AM_GNU_GETTEXT
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([po/Makefile.in])
@@ -84,7 +82,7 @@ AC_CONFIG_SRCDIR(hello.c)
AC_PROG_CC
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
# first macro directory, in which po.m4, etc. belong
AC_CONFIG_MACRO_DIR([gettext-m4])
@@ -118,7 +116,7 @@ AC_CONFIG_SRCDIR(hello.c)
AC_PROG_CC
AM_GNU_GETTEXT([external], [need-formatstring-macros])
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([po/Makefile.in])
@@ -150,7 +148,7 @@ _gt_recurse([a], [b], , [c])
AC_PROG_CC
AM_GNU_GETTEXT([external])
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([po/Makefile.in])
diff --git a/gettext-tools/tests/autopoint-3 b/gettext-tools/tests/autopoint-3
index a6b185183..c0f468ceb 100755
--- a/gettext-tools/tests/autopoint-3
+++ b/gettext-tools/tests/autopoint-3
@@ -3,8 +3,6 @@
# Test the autopoint program, with Automake.
-required_gettext_version=0.19.5
-
: ${AUTOCONF=autoconf}
${AUTOCONF} --version >/dev/null 2>/dev/null \
|| { echo "Skipping test: autoconf not found"; exit 77; }
@@ -61,7 +59,7 @@ AC_CONFIG_MACRO_DIR([m4])
AC_PROG_CC
AM_GNU_GETTEXT([use-libtool])
-AM_GNU_GETTEXT_VERSION([$required_gettext_version])
+AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile])
@@ -132,18 +130,6 @@ test $? = 0 || { cat autopoint.err; exit 1; }
${CONFIG_SHELL} ./configure --with-included-gettext >/dev/null 2>autpoint.err
test $? = 0 || { cat autopoint.err; exit 1; }
-# Workaround for 0.18.3 or earlier: Processing intl/plural.y with
-# Bison 3.0.1 or later generates a wrong code. Use pre-generated
-# intl/plural.c in that case.
-test -f intl/plural.c && touch intl/plural.c
-
-# Workaround for a bug in 0.19 and 0.19.1: ChangeLog is missing in the archive.
-case "$required_gettext_version" in
- 0.19 | 0.19.1)
- test -f intl/ChangeLog || : > intl/ChangeLog
- ;;
-esac
-
${MAKE} >/dev/null 2>autopoint.err
test $? = 0 || { cat autopoint.err; exit 1; }
diff --git a/gettext-tools/tests/init-env.in b/gettext-tools/tests/init-env.in
index fa428f92e..1ee477561 100644
--- a/gettext-tools/tests/init-env.in
+++ b/gettext-tools/tests/init-env.in
@@ -22,6 +22,7 @@ LOCALE_FR="@LOCALE_FR@"
LOCALE_FR_UTF8="@LOCALE_FR_UTF8@"
LOCALE_JA="@LOCALE_JA@"
host_os="@host_os@"
+ARCHIVE_VERSION="@ARCHIVE_VERSION@"
: ${GETTEXT=tstgettext}
: ${NGETTEXT=tstngettext}