Move copyright code from gdbarch.py to new file

This moves the copyright code from gdbarch.py to a new Python source
file, gdbcopyright.py.  The function in this file will find the
copyright dates by scanning the calling script.  This will be reused
in a future patch.

This involved minor changes to the output of gdbarch.py.  Also, I've
updated copyright.py to remove the reference to gdbarch.sh.  We don't
need to mention gdbarch.py there, either.
This commit is contained in:
Tom Tromey
2022-02-14 08:26:32 -07:00
parent aca6e93ecf
commit a8ab094a32
5 changed files with 62 additions and 28 deletions

View File

@@ -245,7 +245,6 @@ BY_HAND = (
MULTIPLE_COPYRIGHT_HEADERS = (
"gdb/doc/gdb.texinfo",
"gdb/doc/refcard.tex",
"gdb/gdbarch.sh",
"gdb/syscalls/update-netbsd.sh",
)