diff options
author | Kenneth Lundin <kenneth@erlang.org> | 2021-07-08 08:34:53 +0200 |
---|---|---|
committer | Kenneth Lundin <kenneth@erlang.org> | 2021-07-08 08:34:53 +0200 |
commit | 6ad6f0b6218e5f48177044678674736d81f3c264 (patch) | |
tree | d9e25942fb1135ec08fce932522b0118be32b21c /system | |
parent | 7054b277cee390c782209cb23c04c51486e2d753 (diff) | |
download | erlang-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.erl | 3 | ||||
-rw-r--r-- | system/doc/top/templates/index.html.src | 2 |
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 © 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> |