From 97d37b85d4e1a218fdc61dbe0dff3e7c8ff36121 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Tue, 13 Feb 2018 13:09:02 -0500 Subject: 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 (Merged from https://github.com/openssl/openssl/pull/5350) --- crypto/conf/conf_def.h | 2 +- crypto/conf/keysets.pl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'crypto/conf') diff --git a/crypto/conf/conf_def.h b/crypto/conf/conf_def.h index da4767e196..ad8894c4f4 100644 --- a/crypto/conf/conf_def.h +++ b/crypto/conf/conf_def.h @@ -2,7 +2,7 @@ * WARNING: do not edit! * Generated by crypto/conf/keysets.pl * - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved. * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at diff --git a/crypto/conf/keysets.pl b/crypto/conf/keysets.pl index 5af08ae20a..a637fdc500 100644 --- a/crypto/conf/keysets.pl +++ b/crypto/conf/keysets.pl @@ -57,12 +57,14 @@ foreach (0 .. 255) push(@V_w32,$v); } +# Output year depends on the year of the script. +my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900; print <<"EOF"; /* * WARNING: do not edit! * Generated by crypto/conf/keysets.pl * - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. + * Copyright 1995-$YEAR The OpenSSL Project Authors. All Rights Reserved. * Licensed under the OpenSSL license (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at -- cgit v1.2.3