From 1474f6fae39d03ffa04e443c616ec8fed179edd4 Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Sat, 13 Jul 2024 20:14:22 -0700 Subject: [PATCH] useless-if-before-free: Fix copyright year in --version output. * build-aux/useless-if-before-free (copyright_year): Derive from time-stamp. --- ChangeLog | 4 ++++ build-aux/useless-if-before-free | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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; -- 2.39.5