]> Savannah Git Hosting - gnulib.git/commitdiff
useless-if-before-free: Fix copyright year in --version output.
authorCollin Funk <collin.funk1@gmail.com>
Sun, 14 Jul 2024 03:14:22 +0000 (20:14 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sun, 14 Jul 2024 03:14:22 +0000 (20:14 -0700)
* build-aux/useless-if-before-free (copyright_year): Derive from
time-stamp.

ChangeLog
build-aux/useless-if-before-free

index 2ddb14c0dbb8801c34d2a7307c2b81abef894578..56c0253f7a7314b3705fb60ab1600cb58d5ed5c1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2024-07-13  Collin Funk  <collin.funk1@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.
 
index dde64ec2154beeaf36a11595417b5c4b8883837c..39ce39ab311668b302a844524460ad043385bec2 100755 (executable)
 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;