gbranden pushed a commit to branch master
in repository groff.
commit cbda8ca999bb6f1b2da6839f4cdc352928c81f78
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Jul 14 18:44:16 2025 -0500
font/scripts/*: Fix shell style nits.
* font/scripts/gendesc.sh:
* font/scripts/genfonts.sh: Stop using semicolons to simulate K&R C
brace style.
---
ChangeLog | 6 ++++++
font/scripts/gendesc.sh | 8 +++++---
font/scripts/genfonts.sh | 7 ++++---
3 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 16d9e4993..16c092b5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-07-14 G. Branden Robinson <[email protected]>
+
+ * font/scripts/gendesc.sh:
+ * font/scripts/genfonts.sh: Fix shell style nits. Stop using
+ semicolons to simulate K&R C brace style.
+
2025-07-14 G. Branden Robinson <[email protected]>
* font/scripts/gendesc.sh:
diff --git a/font/scripts/gendesc.sh b/font/scripts/gendesc.sh
index 3e633bb20..088d0966f 100755
--- a/font/scripts/gendesc.sh
+++ b/font/scripts/gendesc.sh
@@ -1,9 +1,11 @@
#!/bin/sh
# Usage: gendesc.sh <input .proto> <RES> <CPI> <LPI> <list of fonts>
progname=${0##*/}
-if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4" || \
- test -z "$5"; then
- echo "$progname: missing parameter"; exit 2;
+if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4" \
+ || test -z "$5"
+then
+ echo "$progname: missing parameter"
+ exit 2
fi
INPUT=$1
RES=$2
diff --git a/font/scripts/genfonts.sh b/font/scripts/genfonts.sh
index b2ff82188..616bbfbf6 100755
--- a/font/scripts/genfonts.sh
+++ b/font/scripts/genfonts.sh
@@ -2,10 +2,11 @@
# Usage:
# genfonts.sh <input .proto file> <RES> <CPI> <FONT name>
progname=${0##*/}
-if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4"; then
- echo "$progname: missing parameter"; exit 2;
+if test -z "$1" || test -z "$2" || test -z "$3" || test -z "$4"
+then
+ echo "$progname: missing parameter"
+ exit 2
fi
-
INPUT=$1
RES=$2
CPI=$3
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit