gdb/copyright.py: print notice about files that print copyright at runtime

During the last new year process, it seems that we forgot to update the
copyright notices printed by the various programs (see 713b99a939 "gdb,
gdbserver: update copyright years in copyright notices").  Change
gdb/copyright.py to print a message about this.  For a procedure that
happens once a year, this seems sufficient to me, but if someone wants
to automate it I won't object.

While at it, change the formatting of the previous message, to match the
formatting of the first message (making it end with a colon).

Change-Id: I330f566221d102bab0a953bc324127f2466dd5cf
Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Simon Marchi
2025-08-14 16:13:01 -04:00
parent e771abf8ff
commit 8feea8c5d8

View File

@@ -191,11 +191,20 @@ def main(argv: list[str]) -> int | None:
if BY_HAND:
print()
print(
"\033[31mREMINDER: The following files must be updated by hand." "\033[0m"
"\033[31mREMINDER: The following files must be updated by hand:" "\033[0m"
)
for filename in BY_HAND:
print(" ", filename)
print()
print(
"\033[31mREMINDER: The following files contain code to print a copyright "
"notice at runtime, they must be updated by hand:\033[0m"
)
print(" gdb/top.c")
print(" gdbserver/gdbreplay.cc")
print(" gdbserver/server.cc")
############################################################################
#