]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/contrib] Add more clean files in check-whitespace-pre-commit.py
authorTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 20:05:04 +0000 (21:05 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 8 Dec 2025 20:05:04 +0000 (21:05 +0100)
Add gdbsupport and gdbserver as whitespace-clean in
gdb/contrib/check-whitespace-pre-commit.py.

Likewise for *.ac and *.m4.

Also drop the ignore of configure, that's already taken care of in
.gitattributes.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/contrib/check-whitespace-pre-commit.py

index 832628095f0083f6be806630bd1dd82d4be85149..023a5d2b2ea8214f4ecd7a48656b4f6fe0fae370 100755 (executable)
@@ -18,16 +18,11 @@ import re
 import subprocess
 import sys
 
-re_clean = re.compile("(^|/)gdb/testsuite/")
-re_ignore = re.compile("/configure$")
+re_clean = re.compile("(^(gdb/testsuite/|gdbsupport/|gdbserver/)|[.](m4|ac)$)")
 
 clean = []
 other = []
 for f in sys.argv[1:]:
-    m = re_ignore.search(f)
-    if m:
-        continue
-
     m = re_clean.search(f)
     if m:
         clean.append(f)