From: Andreas Metzler Date: Sun, 4 Jun 2023 11:53:43 +0000 (+0200) Subject: Automate and fix manpage copyright year update X-Git-Tag: 3.8.1~10^2~1 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=ae914ab0ebf99bc3d8a6d504ccf9d552b83ba7c8;p=thirdparty%2Fgnutls.git Automate and fix manpage copyright year update Handle manpage copyright year update in update-copyright-year target, and fix the library manpage copyright year statement, $(YEAR) expanded to an empty string Broken by: 5a58370864e04f5dbb05b0ae453e6fa592a93175 Signed-off-by: Andreas Metzler --- diff --git a/cfg.mk b/cfg.mk index e4ff0ea70c..1638e2791c 100644 --- a/cfg.mk +++ b/cfg.mk @@ -102,6 +102,14 @@ glimport: update-copyright-year: $(AM_V_at)$(SED) -i "s/\"2000-[0-9]\{4,\}\"/\"2000-`date +%Y`\"/g" src/args-std.def.in $(AM_V_at)$(SED) -i "s/ 2001-[0-9]\{4,\} / 2001-`date +%Y` /g" doc/gnutls.texi + $(AM_V_at)$(SED) -i \ + -e "s/ 2001-[0-9]\{4,\} / 2001-`date +%Y` /g" \ + -e "s/ 2020-[0-9]\{4,\} / 2020-`date +%Y` /g" \ + doc/manpages/Makefile.am + $(AM_V_at)$(SED) -i \ + -e "s/ 2000-[0-9]\{4,\} / 2000-`date +%Y` /g" \ + doc/Makefile.am \ + src/Makefile.am # Code Coverage diff --git a/doc/manpages/Makefile.am b/doc/manpages/Makefile.am index 3ffc622815..e29ff15caa 100644 --- a/doc/manpages/Makefile.am +++ b/doc/manpages/Makefile.am @@ -1367,7 +1367,7 @@ stamp_mans: $(HEADER_FILES) -pkg-site "https://www.gnutls.org" \ -include "gnutls/`basename $$header .in`" \ -seeinfo $(PACKAGE) -verbatimcopying \ - -copyright "2001-$(YEAR) Free Software Foundation, Inc., and others" \ + -copyright "2001-2023 Free Software Foundation, Inc., and others" \ -function $$i \ $(C_SOURCE_FILES) > $$i.3 && \ echo $(ECHO_N) "."; \