summaryrefslogtreecommitdiffstats
path: root/crypto/bn
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2018-02-13 13:09:02 -0500
committerRich Salz <rsalz@openssl.org>2018-02-13 13:22:30 -0500
commit97d37b85d4e1a218fdc61dbe0dff3e7c8ff36121 (patch)
treeb7af9616b57456e5606683507bab2d81e44aa1f6 /crypto/bn
parentd7c402c4f2d9c311a91616fd75c24a15afabe2e5 (diff)
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 'crypto/bn')
-rw-r--r--crypto/bn/bn_prime.h2
-rw-r--r--crypto/bn/bn_prime.pl4
2 files changed, 4 insertions, 2 deletions
diff --git a/crypto/bn/bn_prime.h b/crypto/bn/bn_prime.h
index 3bee718092..a64c9630f3 100644
--- a/crypto/bn/bn_prime.h
+++ b/crypto/bn/bn_prime.h
@@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by crypto/bn/bn_prime.pl
*
- * Copyright 1998-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1998-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
diff --git a/crypto/bn/bn_prime.pl b/crypto/bn/bn_prime.pl
index b1e4707db1..72a5e1f4d5 100644
--- a/crypto/bn/bn_prime.pl
+++ b/crypto/bn/bn_prime.pl
@@ -6,12 +6,14 @@
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
+# 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/bn/bn_prime.pl
*
- * Copyright 1998-2016 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 1998-$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