]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: extend release version hook to cover config.lt
authorMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 06:10:12 +0000 (01:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 06:10:32 +0000 (01:10 -0500)
* cfg.mk: Extend rule to cover config.lt.
* m4/libtool.m4: Update copyright year.

cfg.mk
m4/libtool.m4

diff --git a/cfg.mk b/cfg.mk
index 62782ba809fb7551b962b0c88dea8c39bea264b1..e334b1365c27c182ea915b0e4fb10b72765541c1 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -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
index f439b5a6229962ba89024e71ffa56e0e78b1172c..32485604e847f85ca1f4fb6651d79d9a52702a10 100644 (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."