Commit 97d37b85 authored by Rich Salz's avatar Rich Salz
Browse files

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: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5350)
parent d7c402c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
 * WARNING: do not edit!
 * WARNING: do not edit!
 * Generated by crypto/asn1/charmap.pl
 * Generated by crypto/asn1/charmap.pl
 *
 *
 * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
 * Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
 *
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * this file except in compliance with the License.  You can obtain a copy
+3 −1
Original line number Original line Diff line number Diff line
@@ -82,12 +82,14 @@ $arr[ord("?")] |= $PSTRING_CHAR;


# Now generate the C code
# Now generate the C code


# Output year depends on the year of the script.
my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900;
print <<EOF;
print <<EOF;
/*
/*
 * WARNING: do not edit!
 * WARNING: do not edit!
 * Generated by crypto/asn1/charmap.pl
 * Generated by crypto/asn1/charmap.pl
 *
 *
 * Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
 * Copyright 2000-$YEAR The OpenSSL Project Authors. All Rights Reserved.
 *
 *
 * Licensed under the OpenSSL license (the "License").  You may not use
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * this file except in compliance with the License.  You can obtain a copy
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
 * WARNING: do not edit!
 * WARNING: do not edit!
 * Generated by crypto/bn/bn_prime.pl
 * 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
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * this file except in compliance with the License.  You can obtain a copy
+3 −1
Original line number Original line Diff line number Diff line
@@ -6,12 +6,14 @@
# in the file LICENSE in the source distribution or at
# in the file LICENSE in the source distribution or at
# https://www.openssl.org/source/license.html
# 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";
print <<"EOF";
/*
/*
 * WARNING: do not edit!
 * WARNING: do not edit!
 * Generated by crypto/bn/bn_prime.pl
 * 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
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * this file except in compliance with the License.  You can obtain a copy
+1 −1
Original line number Original line Diff line number Diff line
@@ -2,7 +2,7 @@
 * WARNING: do not edit!
 * WARNING: do not edit!
 * Generated by crypto/conf/keysets.pl
 * 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
 * Licensed under the OpenSSL license (the "License").  You may not use
 * this file except in compliance with the License.  You can obtain a copy
 * this file except in compliance with the License.  You can obtain a copy
 * in the file LICENSE in the source distribution or at
 * in the file LICENSE in the source distribution or at
Loading