The announce-gen and useless-if-before-free scripts have had changes
since their copyright date was updated:

    $ ./build-aux/announce-gen --version
    announce-gen version 2024-07-04 10:55
    Copyright (C) 2022 Free Software Foundation, Inc.

I've pushed the two attached patches to derive the copyright year from
the time-stamp string.

Collin

>From 8b331b0f514e1eb9a2e46076b2ae6326751bb7c9 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Sat, 13 Jul 2024 20:10:46 -0700
Subject: [PATCH 1/2] announce-gen: Fix copyright year in --version output.

* build-aux/announce-gen (copyright_year): Derive from time-stamp.
---
 ChangeLog              | 5 +++++
 build-aux/announce-gen | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a97b22aa28..2ddb14c0db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-13  Collin Funk  <collin.fu...@gmail.com>
+
+	announce-gen: Fix copyright year in --version output.
+	* build-aux/announce-gen (copyright_year): Derive from time-stamp.
+
 2024-07-13  Bruno Haible  <br...@clisp.org>
 
 	stdlib: Support use of clang++ on Ubuntu.
diff --git a/build-aux/announce-gen b/build-aux/announce-gen
index 9728aeee9e..a412853429 100755
--- a/build-aux/announce-gen
+++ b/build-aux/announce-gen
@@ -35,13 +35,13 @@
 eval 'exec perl -wSx "$0" "$@"'
      if 0;
 
-my $VERSION = '2024-07-04 10:55'; # UTC
+my $VERSION = '2024-07-14 03:11'; # 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 Getopt::Long;
-- 
2.45.2

>From 1474f6fae39d03ffa04e443c616ec8fed179edd4 Mon Sep 17 00:00:00 2001
From: Collin Funk <collin.fu...@gmail.com>
Date: Sat, 13 Jul 2024 20:14:22 -0700
Subject: [PATCH 2/2] 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  <collin.fu...@gmail.com>
 
+	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.45.2

Reply via email to