Include bootstrap tool version info in the announcement form.
authorJim Meyering <jim@meyering.net>
Fri, 8 Dec 2006 09:28:05 +0000 (10:28 +0100)
committerJim Meyering <jim@meyering.net>
Fri, 8 Dec 2006 09:28:05 +0000 (10:28 +0100)
* Makefile.maint (gnulib_snapshot_date): Define.
(announcement): Use two new announce-gen options,
--bootstrap-tools and --gnulib-snapshot-date.
* Makefile.cfg (gnulib_dir): Set.

ChangeLog
Makefile.cfg
Makefile.maint

index 79b8851..66bf2b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-12-08  Jim Meyering  <jim@meyering.net>
 
+       Include bootstrap tool version info in the announcement form.
+       * Makefile.maint (gnulib_snapshot_date): Define.
+       (announcement): Use two new announce-gen options,
+       --bootstrap-tools and --gnulib-snapshot-date.
+       * Makefile.cfg (gnulib_dir): Set.
+
        Post-release version change.
        * NEWS: Add a line for 6.8-dirty.
        * configure.ac (AC_INIT): Set new version string.
index 0c43c21..bd42ca0 100644 (file)
@@ -34,3 +34,7 @@ gpg_key_ID = D333CBA1
 # files -- otherwise, you'd need to have the upcoming version number
 # at the top of the file for each `make distcheck' run.
 local-checks-to-skip = changelog-check
+
+# The local directory containing the checked-out copy of gnulib used in
+# this release.  Used solely to get a date for the "announcement" target.
+gnulib_dir = /gnulib
index f4e961f..112ce18 100644 (file)
@@ -555,6 +555,11 @@ prev-tgz = $(PACKAGE)-$(PREV_VERSION).tar.gz
 xd-delta = $(PACKAGE)-$(PREV_VERSION)-$(VERSION).xdelta
 
 rel-files = $(xd-delta) $(DIST_ARCHIVES)
+
+# Approximate date of last "update" by the date on the ChangeLog file.
+gnulib_snapshot_date = \
+  $$(date -u --date $$(stat --printf @%Y $(gnulib_dir)/ChangeLog) \
+     '+%Y-%m-%d %T %z')
 announcement: NEWS ChangeLog $(rel-files)
        @./build-aux/announce-gen                                       \
            --release-type=$(RELEASE_TYPE)                              \
@@ -563,8 +568,9 @@ announcement: NEWS ChangeLog $(rel-files)
            --curr=$(VERSION)                                           \
            --gpg-key-id=$(gpg_key_ID)                                  \
            --news=NEWS                                                 \
-           $(addprefix --url-dir=, $(url_dir_list))                    \
-
+           --bootstrap-tools=autoconf,automake,bison,gnulib            \
+            --gnulib-snapshot-date=$(gnulib_snapshot_date)             \
+           $(addprefix --url-dir=, $(url_dir_list))
 
 ## ---------------- ##
 ## Updating files.  ##