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

ChangeLog
build-aux/announce-gen

index a97b22aa28d4d88ec794d824b5ab98fdca634ce9..2ddb14c0dbb8801c34d2a7307c2b81abef894578 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-13  Collin Funk  <collin.funk1@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  <bruno@clisp.org>
 
        stdlib: Support use of clang++ on Ubuntu.
index 9728aeee9e7b66bc42a16d801b832ee2888e3df6..a412853429666d6d3808414dac275dc48658bac5 100755 (executable)
 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;