]> Savannah Git Hosting - gnulib.git/commitdiff
announce-gen: Mention git commit and tag in announcement.
authorSimon Josefsson <simon@josefsson.org>
Tue, 10 Dec 2024 08:57:33 +0000 (09:57 +0100)
committerSimon Josefsson <simon@josefsson.org>
Tue, 10 Dec 2024 08:57:33 +0000 (09:57 +0100)
* build-aux/announce-gen (this_commit_hash): New variable.
(main): Print git commit hash and tag.
(main): Put git-log info near git and NEWS info.

ChangeLog
build-aux/announce-gen

index 09ac44d1c704a6e9897ff3164c837ccec432385a..5bfb71b28d324912373e1379f3167050cfc1a23f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-05-12  Simon Josefsson  <simon@josefsson.org>
+
+       announce-gen: Mention git commit and tag in announcement.
+       * build-aux/announce-gen (this_commit_hash): New variable.
+       (main): Print git commit hash and tag.
+       (main): Put git-log info near git and NEWS info.
+
 2024-12-10  Simon Josefsson  <simon@josefsson.org>
 
        maintainer-makefile: Pass on $(announce_gen_args) to announce-gen.
index 318eeb19e4c1b16d26e1fd8499f3e1d8c54c20b8..cc1d46039f2555de1811279d8fe138a008f0dda6 100755 (executable)
@@ -35,7 +35,7 @@
 eval 'exec perl -wSx "$0" "$@"'
      if 0;
 
-my $VERSION = '2024-12-02 20:10'; # UTC
+my $VERSION = '2024-12-10 08:57'; # UTC
 # The definition above must lie within the first 8 lines in order
 # for the Emacs time-stamp write hook (at end) to update it.
 # If you change this file with Emacs, please let the write hook
@@ -572,6 +572,8 @@ EOF
   chomp (my $n_ci = `git rev-list "v$v0..v$v1" | wc -l`);
   chomp (my $n_p = `git shortlog "v$v0..v$v1" | grep -c '^[^ ]'`);
 
+  my $this_commit_hash = `git log --pretty=%H -1 "v$v1"`;
+  chop $this_commit_hash;
   my $prev_release_date = `git log --pretty=%ct -1 "v$v0"`;
   my $this_release_date = `git log --pretty=%ct -1 "v$v1"`;
   my $n_seconds = $this_release_date - $prev_release_date;
@@ -593,11 +595,6 @@ $first_name [on behalf of the $package_name maintainers]
 Here is the GNU $package_name home page:
     https://gnu.org/s/$package_name/
 
-For a summary of changes and contributors, see:
-  https://git.sv.gnu.org/gitweb/?p=$package_name.git;a=shortlog;h=v$v1
-or run this command from a git-cloned $package_name directory:
-  git shortlog v$v0..v$v1
-
 EOF
 
   if (@url_dir_list == 1 && @tarballs == 1)
@@ -691,6 +688,23 @@ keyring:
   gpg --keyring gnu-keyring.gpg --verify $tarballs[0].sig
 EOF
 
+  print <<EOF;
+
+This release is based on the $package_name git repository, available as
+
+  git clone https://git.savannah.gnu.org/git/$package_name.git
+
+with commit $this_commit_hash tagged as v$v1.
+
+For a summary of changes and contributors, see:
+
+  https://git.sv.gnu.org/gitweb/?p=$package_name.git;a=shortlog;h=v$v1
+
+or run this command from a git-cloned $package_name directory:
+
+  git shortlog v$v0..v$v1
+EOF
+
   my @tool_versions = get_tool_versions (\@tool_list, $gnulib_version);
   @tool_versions
     and print "\nThis release was bootstrapped with the following tools:",