[binutils-gdb] gdb/copyright.py: run autoconf
Simon Marchi
simark@sourceware.org
Wed Jan 7 20:11:31 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fac782f9fd5489120beda63e8e65e8cefdb71c44
commit fac782f9fd5489120beda63e8e65e8cefdb71c44
Author: Simon Marchi <simon.marchi@efficios.com>
Date: Tue Jan 6 15:30:41 2026 -0500
gdb/copyright.py: run autoconf
The last new year procedure missed running autoreconf in gnulib/ and
sim/ to update the Makefile.in files (following the updates of the
corresponding Makefile.am files). I propose to make the script run
`autoreconf -v` to ensure we don't miss those anymore. It takes a bit
of time, but that script isn't run very frequently (I'd say more or less
once a year).
Change-Id: Iab64415cedac716632d6a1230ebb87cc3190f4e4
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
gdb/copyright.py | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/gdb/copyright.py b/gdb/copyright.py
index eadf33870a0..94a1dfc91de 100755
--- a/gdb/copyright.py
+++ b/gdb/copyright.py
@@ -157,6 +157,16 @@ def may_have_copyright_notice(filename: str):
return False
+def run_autoreconf():
+ """Run autoreconf -v in all relevant directories."""
+ dirs = ["gdb", "gdbsupport", "gdbserver", "gnulib", "sim"]
+ for d in dirs:
+ print(f"\033[32mRunning autoreconf in {d}...\033[0m")
+ result = subprocess.run(["autoreconf", "-v"], cwd=d)
+ if result.returncode != 0:
+ sys.exit(f"Error: autoreconf failed in {d}")
+
+
def get_parser() -> argparse.ArgumentParser:
"""Get a command line parser."""
parser = argparse.ArgumentParser(
@@ -176,6 +186,8 @@ def main(argv: list[str]) -> int | None:
update_list = get_update_list()
update_files(update_list)
+ run_autoreconf()
+
# Remind the user that some files need to be updated by HAND...
if MULTIPLE_COPYRIGHT_HEADERS:
More information about the Gdb-cvs
mailing list