From: Simon Josefsson Date: Tue, 10 Dec 2024 08:57:33 +0000 (+0100) Subject: announce-gen: Mention git commit and tag in announcement. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45db9fb46adaf2f88529a52f3c94ac4fdc82e33e;p=thirdparty%2Fgnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 09ac44d1c7..5bfb71b28d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2024-05-12 Simon Josefsson + + 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 maintainer-makefile: Pass on $(announce_gen_args) to announce-gen. diff --git a/build-aux/announce-gen b/build-aux/announce-gen index 318eeb19e4..cc1d46039f 100755 --- a/build-aux/announce-gen +++ b/build-aux/announce-gen @@ -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 <