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.
This commit is contained in:
Mike Frysinger 2024-01-12 02:09:28 -05:00
parent 64bef5ba65
commit 96dafbda93
2 changed files with 6 additions and 1 deletions

5
cfg.mk
View File

@ -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

2
m4/libtool.m4 vendored
View 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.