From 96dafbda932c7e872ad35fe369175f932a751589 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 12 Jan 2024 02:09:28 -0500 Subject: [PATCH] maint: add hook to automate release version updates Fixes libtool bug https://bugs.gnu.org/67588. Automate the process to avoid it falling stale again in the future, and then refresh here to get in sync. * cfg.mk: Add rule to update libtool.m4 release version. * m4/libtool.m4: Update release year. --- cfg.mk | 5 +++++ m4/libtool.m4 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index 03ada1c11..62782ba80 100644 --- a/cfg.mk +++ b/cfg.mk @@ -23,6 +23,11 @@ update-copyright-env := UPDATE_COPYRIGHT_FORCE=1 UPDATE_COPYRIGHT_USE_INTERVALS=1 +update-copyright: update-release-year +update-release-year: + $(AM_V_GEN)year=`date +%Y`; \ + sed -i "/_LT_COPY/,+1 { /Copyright/ {s:[0-9][0-9][0-9][0-9]:$${year}:} }" m4/libtool.m4 + # Set format of NEWS old_NEWS_hash := 68e212222416d15e517576ce749b131f diff --git a/m4/libtool.m4 b/m4/libtool.m4 index b9d3b1a5e..8606c4e24 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -9,7 +9,7 @@ # modifications, as long as this notice is preserved. m4_define([_LT_COPYING], [dnl -# Copyright (C) 2014 Free Software Foundation, Inc. +# Copyright (C) 2024 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -- 2.47.2