Skip to content

Commit

Permalink
Fix copyright year issues
Browse files Browse the repository at this point in the history
Fixes: #13765

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #17427)

(cherry picked from commit fd84b9c)
  • Loading branch information
bernd-edlinger committed Jan 6, 2022
1 parent 7a30610 commit ce2f4b6
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -27,6 +27,8 @@ jobs:
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends --force-yes install unifdef
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: config
run: ./config --banner=Configured --strict-warnings enable-fips && perl configdata.pm --dump
- name: make build_generated
Expand Down
2 changes: 1 addition & 1 deletion crypto/asn1/charmap.h
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by crypto/asn1/charmap.pl
*
* Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
2 changes: 1 addition & 1 deletion crypto/bn/bn_prime.h
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by crypto/bn/bn_prime.pl
*
* Copyright 1998-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1998-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
2 changes: 1 addition & 1 deletion crypto/conf/conf_def.h
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by crypto/conf/keysets.pl
*
* Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
* Licensed under the Apache License 2.0 (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
Expand Down
2 changes: 1 addition & 1 deletion crypto/objects/obj_xref.h
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by objxref.pl
*
* Copyright 1998-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 1998-2021 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
Expand Down
2 changes: 1 addition & 1 deletion include/openssl/obj_mac.h
Expand Up @@ -2,7 +2,7 @@
* WARNING: do not edit!
* Generated by crypto/objects/objects.pl
*
* Copyright 2000-2022 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
* Licensed under the Apache License 2.0 (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
Expand Down
4 changes: 2 additions & 2 deletions util/perl/OpenSSL/copyright.pm
Expand Up @@ -23,11 +23,11 @@ sub year_of {

# See if git's available
open my $FH,
"git log -1 --date=format:%Y --format=format:%ad $file 2>/dev/null|"
"git log -1 --date=short --format=format:%cd $file 2>/dev/null|"
or return $YEAR;
my $LINE = <$FH>;
close $FH;
chomp($LINE);
$LINE =~ s/^([0-9]*)-.*/$1/;
$YEAR = $LINE if $LINE;
return $YEAR;
}
Expand Down

0 comments on commit ce2f4b6

Please sign in to comment.