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:
parent
d643556d4b
commit
c15647075d
|
@ -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.:
|
||||
|
|
|
@ -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.}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue