From: Tom de Vries <tdevries@suse.de>
To: gdb-patches@sourceware.org
Subject: [PATCH 1/2] [gdb] Mark some shell scripts as having 2-space indentation
Date: Tue, 15 Sep 2026 19:28:45 +0200 [thread overview]
Message-ID: <20260915172846.3173672-2-tdevries@suse.de> (raw)
In-Reply-To: <20260915172846.3173672-1-tdevries@suse.de>
Some shell-scripts have 2-space indentation.
Make a note of this in the files, to make editors (emacs in particular)
respect this.
I copied the pattern I found in gdb/features/feature_to_c.sh, and added the
more modern sh-basic-offset.
Likewise, add sh-basic-offset in gdb/features/feature_to_c.sh and
gdb/contrib/expect-read1.sh.
---
gdb/config/djgpp/djcheck.sh | 7 +++++++
gdb/config/djgpp/djconfig.sh | 7 +++++++
gdb/contrib/expect-read1.sh | 1 +
gdb/features/feature_to_c.sh | 1 +
gdb/gdb_buildall.sh | 7 +++++++
5 files changed, 23 insertions(+)
diff --git a/gdb/config/djgpp/djcheck.sh b/gdb/config/djgpp/djcheck.sh
index 35e6e765dc6..5b81ddcca55 100644
--- a/gdb/config/djgpp/djcheck.sh
+++ b/gdb/config/djgpp/djcheck.sh
@@ -45,3 +45,10 @@ do
fi
done
done
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# sh-basic-offset:2
+# End:
+# vi:sw=2
diff --git a/gdb/config/djgpp/djconfig.sh b/gdb/config/djgpp/djconfig.sh
index e5ca023561f..990c71a1279 100644
--- a/gdb/config/djgpp/djconfig.sh
+++ b/gdb/config/djgpp/djconfig.sh
@@ -184,3 +184,10 @@ echo "Running the configure script..."
if test -f "${srcdir}/install-" ; then
mv "${srcdir}/install-" "${srcdir}/install-.sh"
fi
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# sh-basic-offset:2
+# End:
+# vi:sw=2
diff --git a/gdb/contrib/expect-read1.sh b/gdb/contrib/expect-read1.sh
index 16b2dbb804d..cda71e40c11 100755
--- a/gdb/contrib/expect-read1.sh
+++ b/gdb/contrib/expect-read1.sh
@@ -53,5 +53,6 @@ LD_PRELOAD=$SO expect "$@"
# Local Variables:
# mode:shell-script
# sh-indentation:2
+# sh-basic-offset:2
# End:
# vi:sw=2
diff --git a/gdb/features/feature_to_c.sh b/gdb/features/feature_to_c.sh
index ecbbd773011..4884d6894da 100755
--- a/gdb/features/feature_to_c.sh
+++ b/gdb/features/feature_to_c.sh
@@ -62,5 +62,6 @@ echo "};" >> "$output"
# Local Variables:
# mode:shell-script
# sh-indentation:2
+# sh-basic-offset:2
# End:
# vi:sw=2
diff --git a/gdb/gdb_buildall.sh b/gdb/gdb_buildall.sh
index 0462889e52f..55b585b8246 100644
--- a/gdb/gdb_buildall.sh
+++ b/gdb/gdb_buildall.sh
@@ -272,3 +272,10 @@ then
fi
exit 0
+
+# Local Variables:
+# mode:shell-script
+# sh-indentation:2
+# sh-basic-offset:2
+# End:
+# vi:sw=2
--
2.51.0
next prev parent reply other threads:[~2026-09-15 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 17:28 [PATCH 0/2] [gdb] Normalize shell script indentation Tom de Vries
2026-09-15 17:28 ` Tom de Vries [this message]
2026-09-15 17:28 ` [PATCH 2/2] [gdb] Fix 3-space indentation in shell scripts Tom de Vries
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260915172846.3173672-2-tdevries@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox