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
let
const
# e.g.: Copyright (c) 2018-2021 Status Research & Development GmbH
NimbusCopyright* = "Copyright (c) 2018-" &
$(now().utc.year) &
CompileDate.split('-')[0] &
" Status Research & Development GmbH"
# e.g.:

View File

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

View File

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