maint: extend release version hook to cover config.lt

* cfg.mk: Extend rule to cover config.lt.
* m4/libtool.m4: Update copyright year.
This commit is contained in:
Mike Frysinger 2024-01-14 01:10:12 -05:00
parent 9ced107b8c
commit 22406ebb83
2 changed files with 5 additions and 2 deletions

5
cfg.mk
View File

@ -26,7 +26,10 @@ update-copyright-env := UPDATE_COPYRIGHT_FORCE=1 UPDATE_COPYRIGHT_USE_INTERVALS=
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
sed -i \
-e "/_LT_COPY/,+1 { /Copyright/ {s:[0-9][0-9][0-9][0-9]:$${year}:} }" \
-e "/^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

@ -651,7 +651,7 @@ m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
configured by $[0], generated by m4_PACKAGE_STRING.
Copyright (C) 2011 Free Software Foundation, Inc.
Copyright (C) 2024 Free Software Foundation, Inc.
This config.lt script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."