summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorKenneth Lundin <kenneth@erlang.org>2021-07-08 08:34:53 +0200
committerKenneth Lundin <kenneth@erlang.org>2021-07-08 08:34:53 +0200
commit6ad6f0b6218e5f48177044678674736d81f3c264 (patch)
treed9e25942fb1135ec08fce932522b0118be32b21c /system
parent7054b277cee390c782209cb23c04c51486e2d753 (diff)
downloaderlang-6ad6f0b6218e5f48177044678674736d81f3c264.tar.gz
Change the copyright notice in the footer to always include the current year
Diffstat (limited to 'system')
-rw-r--r--system/doc/top/src/erl_html_tools.erl3
-rw-r--r--system/doc/top/templates/index.html.src2
2 files changed, 4 insertions, 1 deletions
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 &copy; 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 &copy; 1999-2016
+Copyright &copy; 1999-#copyrightyear#
<a href="http://www.ericsson.com">Ericsson AB</a>
</small>
</center>