From: Collin Funk Date: Sun, 14 Jul 2024 03:14:22 +0000 (-0700) Subject: useless-if-before-free: Fix copyright year in --version output. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=1474f6fae39d03ffa04e443c616ec8fed179edd4;p=gnulib.git useless-if-before-free: Fix copyright year in --version output. * build-aux/useless-if-before-free (copyright_year): Derive from time-stamp. --- diff --git a/ChangeLog b/ChangeLog index 2ddb14c0db..56c0253f7a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2024-07-13 Collin Funk + useless-if-before-free: Fix copyright year in --version output. + * build-aux/useless-if-before-free (copyright_year): Derive from + time-stamp. + announce-gen: Fix copyright year in --version output. * build-aux/announce-gen (copyright_year): Derive from time-stamp. diff --git a/build-aux/useless-if-before-free b/build-aux/useless-if-before-free index dde64ec215..39ce39ab31 100755 --- a/build-aux/useless-if-before-free +++ b/build-aux/useless-if-before-free @@ -36,13 +36,13 @@ eval 'exec perl -wSx "$0" "$@"' if 0; -my $VERSION = '2024-07-04 10:56'; # UTC +my $VERSION = '2024-07-14 03:13'; # 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 # do its job. Otherwise, update this string manually. -my $copyright_year = '2022'; +(my $copyright_year = $VERSION) =~ s/^(\d*)-.*$/$1/; use strict; use warnings;