gbranden pushed a commit to branch master
in repository groff.
commit 80791a636bbb4364efb86bfda43ecc1894c44099
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Dec 20 21:15:46 2025 -0600
[rfc1345]: Fix style nits in test scripts.
* Drop stump comments after license notices.
* Use lowercase for shell variables that we don't expect to be populated
in the environment.
* Revise Vim modeline to communicate less esoterically.
---
contrib/rfc1345/tests/character-definitions-lack-space.sh | 1 -
contrib/rfc1345/tests/rfc1345-smoke-test.sh | 9 ++++-----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/contrib/rfc1345/tests/character-definitions-lack-space.sh
b/contrib/rfc1345/tests/character-definitions-lack-space.sh
index 5b1b19b5e..90d283f88 100755
--- a/contrib/rfc1345/tests/character-definitions-lack-space.sh
+++ b/contrib/rfc1345/tests/character-definitions-lack-space.sh
@@ -16,7 +16,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
groff="${abs_top_builddir:-.}/test-groff"
diff --git a/contrib/rfc1345/tests/rfc1345-smoke-test.sh
b/contrib/rfc1345/tests/rfc1345-smoke-test.sh
index 8ab95b16a..174b4b845 100755
--- a/contrib/rfc1345/tests/rfc1345-smoke-test.sh
+++ b/contrib/rfc1345/tests/rfc1345-smoke-test.sh
@@ -16,16 +16,15 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-#
groff="${abs_top_builddir:-.}/test-groff"
# Smoke-test rfc1345.tmac.
-DOC='\[,.]'
+doc='\[,.]'
-OUTPUT=$(echo "$DOC" | "$groff" -T utf8 -m rfc1345 -P-cbou -Z)
+output=$(echo "$doc" | "$groff" -T utf8 -m rfc1345 -P-cbou -Z)
-echo "$OUTPUT" | grep -Fqx 'Cu2026'
+echo "$output" | grep -Fqx 'Cu2026'
-# vim:set ai et sw=4 ts=4 tw=72:
+# vim:set autoindent expandtab shiftwidth=4 tabstop=4 textwidth=72:
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit