diff options
author | Rich Salz <rsalz@openssl.org> | 2018-02-13 19:09:02 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2018-02-13 19:22:30 +0100 |
commit | 97d37b85d4e1a218fdc61dbe0dff3e7c8ff36121 (patch) | |
tree | b7af9616b57456e5606683507bab2d81e44aa1f6 /fuzz | |
parent | OPENSSL_cleanup: cleanup secure memory (diff) | |
download | openssl-97d37b85d4e1a218fdc61dbe0dff3e7c8ff36121.tar.xz openssl-97d37b85d4e1a218fdc61dbe0dff3e7c8ff36121.zip |
Generate copyright year properly
Output copyright year depends on any input file(s) and the script.
This is not perfect, but better than what we had.
Also run 'make update'
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5350)
Diffstat (limited to 'fuzz')
-rwxr-xr-x | fuzz/mkfuzzoids.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fuzz/mkfuzzoids.pl b/fuzz/mkfuzzoids.pl index 4bf97bc152..9ad96b349a 100755 --- a/fuzz/mkfuzzoids.pl +++ b/fuzz/mkfuzzoids.pl @@ -8,6 +8,11 @@ my $obj_dat_h = $ARGV[0]; +# Output year depends on the date on the input file and the script. +my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900; +my $iYEAR = [localtime([stat($obj_dat_h)]->[9])]->[5] + 1900; +$YEAR = $iYEAR if $iYEAR > $YEAR; + open IN, '<', $obj_dat_h || die "Couldn't open $obj_dat_h : $!\n"; |