File 0581-Change-the-copyright-notice-in-the-footer-to-always-.patch of Package erlang
From 6ad6f0b6218e5f48177044678674736d81f3c264 Mon Sep 17 00:00:00 2001
From: Kenneth Lundin <kenneth@erlang.org>
Date: Thu, 8 Jul 2021 08:34:53 +0200
Subject: [PATCH] Change the copyright notice in the footer to always include
the current year
---
system/doc/top/src/erl_html_tools.erl | 3 +++
system/doc/top/templates/index.html.src | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/system/doc/top/src/erl_html_tools.erl b/system/doc/top/src/erl_html_tools.erl
index ae598b9ed8..9ed6ffbf32 100644
--- a/system/doc/top/src/erl_html_tools.erl
+++ b/system/doc/top/src/erl_html_tools.erl
@@ -383,6 +383,9 @@ subst("#otp_base_vsn#", _Info, _Group) ->
get(otp_base_vsn);
subst("#version#", Info, _Group) ->
get_version(Info);
+subst("#copyrightyear#", _Info, _Group) ->
+ {Year,_,_} = erlang:date(),
+ integer_to_list(Year);
subst("#copyright#", _Info, _Group) ->
"copyright Copyright © 1991-2004";
subst("#groups#", Info, _Group) ->
diff --git a/system/doc/top/templates/index.html.src b/system/doc/top/templates/index.html.src
index cca0fae523..ec53a5b3c5 100644
--- a/system/doc/top/templates/index.html.src
+++ b/system/doc/top/templates/index.html.src
@@ -185,7 +185,7 @@ Asked Questions</a>.
<center>
<small>
-Copyright © 1999-2016
+Copyright © 1999-#copyrightyear#
<a href="http://www.ericsson.com">Ericsson AB</a>
</small>
</center>
--
2.26.2