Use CompileDate's year part for copyright banner (#2848)

* Use CompileDate's year part for copyright banner

* Fix copyright year

* Fix missing import
This commit is contained in:
andri lim 2024-11-08 10:46:37 +07:00 committed by GitHub
parent d643556d4b
commit c15647075d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 9 deletions

View File

@ -32,10 +32,10 @@ import
export net, defs export net, defs
let const
# e.g.: Copyright (c) 2018-2021 Status Research & Development GmbH # e.g.: Copyright (c) 2018-2021 Status Research & Development GmbH
NimbusCopyright* = "Copyright (c) 2018-" & NimbusCopyright* = "Copyright (c) 2018-" &
$(now().utc.year) & CompileDate.split('-')[0] &
" Status Research & Development GmbH" " Status Research & Development GmbH"
# e.g.: # e.g.:

View File

@ -1,5 +1,5 @@
# Nimbus # Nimbus
# Copyright (c) 2022 Status Research & Development GmbH # Copyright (c) 2022-2024 Status Research & Development GmbH
# Licensed under either of # Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0) # http://www.apache.org/licenses/LICENSE-2.0)
@ -9,7 +9,7 @@
# according to those terms. # according to those terms.
import import
std/[os, options], std/[os, options, strutils],
confutils, confutils/defs confutils, confutils/defs
export export
@ -79,8 +79,10 @@ type
argument }: string argument }: string
const const
Copyright = "Copyright (c) 2022 Status Research & Development GmbH" Copyright = "Copyright (c) 2022-" &
Version = "Nimbus-evmstate 0.1.0" CompileDate.split('-')[0] &
" Status Research & Development GmbH"
Version = "Nimbus-evmstate 0.1.2"
proc init*(_: type StateConf, cmdLine = commandLineParams()): StateConf = proc init*(_: type StateConf, cmdLine = commandLineParams()): StateConf =
{.push warning[ProveInit]: off.} {.push warning[ProveInit]: off.}

View File

@ -1,5 +1,5 @@
# Nimbus # Nimbus
# Copyright (c) 2022-2023 Status Research & Development GmbH # Copyright (c) 2022-2024 Status Research & Development GmbH
# Licensed under either of # Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0) # http://www.apache.org/licenses/LICENSE-2.0)
@ -171,8 +171,10 @@ proc convertToNimStyle(cmds: openArray[string]): seq[string] =
inc i inc i
const const
Copyright = "Copyright (c) 2022 Status Research & Development GmbH" Copyright = "Copyright (c) 2022-" &
Version = "Nimbus-t8n 0.2.2" CompileDate.split('-')[0] &
" Status Research & Development GmbH"
Version = "Nimbus-t8n 0.2.4"
# force the compiler to instantiate T8NConf.load # force the compiler to instantiate T8NConf.load
# rather than have to export parseCmdArg # rather than have to export parseCmdArg