Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFC 0/3] [pre-commit] Add shfmt
@ 2026-09-02 13:17 Tom de Vries
  2026-09-02 13:17 ` [RFC 1/3] " Tom de Vries
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Tom de Vries @ 2026-09-02 13:17 UTC (permalink / raw)
  To: gdb-patches

This series contains three patches.

The first adds an shfmt pre-commit hook.

The second enables it and uses it to format all shell scripts.

The third adds shfmt --simplify.

This is an RFC, given the large amount of changes that reformatting brings.

It would be nice to find a formatter closer to the current style.

Tom de Vries (3):
  [pre-commit] Add shfmt
  [pre-commit] Enable shfmt
  [gdb/contrib] Use shfmt --simplify in shfmt.sh

 .pre-commit-config.yaml                     |  10 ++
 gdb/contrib/cc-with-tweaks.sh               |  80 +++++----
 gdb/contrib/check-file-mode.sh              |  16 +-
 gdb/contrib/check-gnu-style-pre-commit.sh   |   5 +-
 gdb/contrib/gdb-add-index.sh                | 104 ++++++------
 gdb/contrib/pre-commit.py                   |   6 +-
 gdb/contrib/shellcheck.sh                   |   6 +-
 gdb/contrib/shfmt.sh                        |  84 +++++++++
 gdb/contrib/words.sh                        |  20 +--
 gdb/doc/makeinfo-wrapper.sh                 |  14 +-
 gdb/gcore-1.in                              | 141 +++++++--------
 gdb/gdb_buildall.sh                         | 123 ++++++--------
 gdb/gdb_mbuild.sh                           | 179 +++++++++-----------
 gdb/gstack-1.in                             |  25 +--
 gdb/make-init-c                             |   2 +-
 gdb/po/gdbtext                              |  23 +--
 gdb/syscalls/update-freebsd.sh              |  12 +-
 gdb/syscalls/update-linux-defaults.sh       |  29 ++--
 gdb/syscalls/update-linux-from-src.sh       |  25 ++-
 gdb/syscalls/update-linux.sh                |  26 +--
 gdb/syscalls/update-netbsd.sh               |  12 +-
 gdb/testsuite/lib/dg-add-core-file-count.sh |   6 +-
 gdb/testsuite/lib/notty-wrap                |   2 +-
 gdb/testsuite/make-check-all.sh             |  22 +--
 24 files changed, 524 insertions(+), 448 deletions(-)
 create mode 100755 gdb/contrib/shfmt.sh


base-commit: 192afd3ce7c2324cdbee2d4646df6cf1e9b6fd09
-- 
2.51.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-15  7:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02 13:17 [RFC 0/3] [pre-commit] Add shfmt Tom de Vries
2026-09-02 13:17 ` [RFC 1/3] " Tom de Vries
2026-09-02 13:17 ` [RFC 2/3] [pre-commit] Enable shfmt Tom de Vries
2026-09-02 13:17 ` [RFC 3/3] [gdb/contrib] Use shfmt --simplify in shfmt.sh Tom de Vries
2026-09-15  7:26   ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox