Make it possible to run contrib/update-copyright.py --this-year again

gcc/algol68/a68-moids-sorting.cc got a copyright not recognized
by the script and loongarch gen-evolution.awk keeps being a problem.

This patch tweaks those so that
  contrib/update-copyright.py --this-year
can be run successfully again.

2026-03-14  Jakub Jelinek  <jakub@redhat.com>

	PR other/124508
	* update-copyright.py: Add James Bohl. as another copyright.

	* config/loongarch/genopts/gen-evolution.awk: Rename copyright_header
	routine so that update-copyright.py isn't upset about it.
This commit is contained in:
Jakub Jelinek
2026-03-14 19:28:17 +01:00
committed by Jakub Jelinek
parent 317c097a25
commit 88f0a85d70
2 changed files with 7 additions and 4 deletions

View File

@@ -749,6 +749,7 @@ class GCCCopyright (Copyright):
self.add_external_author ('Hewlett-Packard Company')
self.add_external_author ('Intel Corporation')
self.add_external_author ('Information Technology Industry Council.')
self.add_external_author ('James Bohl.')
self.add_external_author ('James Theiler, Brian Gough')
self.add_external_author ('Jose E. Marchesi')
self.add_external_author ('Jose E. Marchesi.')

View File

@@ -46,7 +46,9 @@ BEGIN {
comment[NR] = $0
}
function copyright_header(from_year,to_year)
# copy_right rather than copyright also to make contrib/update_copyright.py
# happy.
function copy_right_header(from_year,to_year)
{
if (to_year == "")
# The weird " " in the middle of a word is to make
@@ -167,7 +169,7 @@ function gen_full_header()
print " Please do not edit this file directly."
print ""
copyright_header(2023, 2026)
copy_right_header(2023, 2026)
print "*/"
print ""
@@ -203,7 +205,7 @@ function gen_full_source()
print " Please do not edit this file directly."
print ""
copyright_header(2023, 2026)
copy_right_header(2023, 2026)
print "*/"
print ""
@@ -246,7 +248,7 @@ function gen_full_def()
print " Please do not edit this file directly."
print ""
copyright_header(2025, 2026)
copy_right_header(2025, 2026)
print "*/"
print ""