]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: add hook to automate release version updates
authorMike Frysinger <vapier@gentoo.org>
Fri, 12 Jan 2024 07:09:28 +0000 (02:09 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Jan 2024 07:09:28 +0000 (02:09 -0500)
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
m4/libtool.m4

diff --git a/cfg.mk b/cfg.mk
index 03ada1c11d54f191517d569b724aa95fe3bb60bf..62782ba809fb7551b962b0c88dea8c39bea264b1 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
 
 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
 
index b9d3b1a5e3a6dfa5e33c562205e18c106973ad4f..8606c4e243f1776fac2bd8155821b28e81ac3e5c 100644 (file)
@@ -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.