use correct year automatically

This commit is contained in:
Dr. Stephen Henson 2012-10-22 13:02:42 +00:00
parent 78c3e20579
commit 6a45ea4f88

View File

@ -14,6 +14,7 @@ my $pack_errcode;
my $load_errcode; my $load_errcode;
my $errcount; my $errcount;
my $year = (localtime)[5] + 1900;
while (@ARGV) { while (@ARGV) {
my $arg = $ARGV[0]; my $arg = $ARGV[0];
@ -392,7 +393,7 @@ foreach $lib (keys %csrc)
} else { } else {
push @out, push @out,
"/* ====================================================================\n", "/* ====================================================================\n",
" * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved.\n", " * Copyright (c) 2001-$year The OpenSSL Project. All rights reserved.\n",
" *\n", " *\n",
" * Redistribution and use in source and binary forms, with or without\n", " * Redistribution and use in source and binary forms, with or without\n",
" * modification, are permitted provided that the following conditions\n", " * modification, are permitted provided that the following conditions\n",
@ -577,7 +578,7 @@ EOF
print OUT <<"EOF"; print OUT <<"EOF";
/* $cfile */ /* $cfile */
/* ==================================================================== /* ====================================================================
* Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. * Copyright (c) 1999-$year The OpenSSL Project. All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without * Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions * modification, are permitted provided that the following conditions