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>
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)