From: Simon Marchi Date: Thu, 14 Aug 2025 20:13:01 +0000 (-0400) Subject: gdb/copyright.py: print notice about files that print copyright at runtime X-Git-Tag: gdb-17-branchpoint~208 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8feea8c5d8cc2573da61fee3fd42cf3392ec0f0e;p=thirdparty%2Fbinutils-gdb.git 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 713b99a9398 "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 --- diff --git a/gdb/copyright.py b/gdb/copyright.py index bd854dc83e4..425b7d21c61 100755 --- a/gdb/copyright.py +++ b/gdb/copyright.py @@ -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") + ############################################################################ #