aboutsummaryrefslogtreecommitdiffstats
diff options
authorAlejandro Colomar <alx@kernel.org>2024-12-22 15:28:18 +0100
committerAlejandro Colomar <alx@kernel.org>2024-12-22 16:48:49 +0100
commit6ac49476c1dd6df815b83a487dda7040d701d05f (patch)
tree264525e3122603067cd97187d48d7b975057dea9
parent1c8ede9f6cc7da0354e7cc6d5e1d6ca6aa860779 (diff)
downloadman-pages-6ac49476c1dd6df815b83a487dda7040d701d05f.tar.gz
src/bin/diffman: Run the entire groff pipeline
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xsrc/bin/diffman13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bin/diffman b/src/bin/diffman
index 172a825ecd..40c33cbe17 100755
--- a/src/bin/diffman
+++ b/src/bin/diffman
@@ -49,8 +49,17 @@ printf '%s\n' "$2.XXXXXX" \
| xargs mktemp -t \
| read -r t2;
-groff -man -Tutf8 <"$p1" >"$t1";
-groff -man -Tutf8 <"$p2" >"$t2";
+preconv <"$p1" \
+| tbl \
+| eqn -Tutf8 \
+| troff -man -Tutf8 \
+| grotty >"$t1";
+
+preconv <"$p2" \
+| tbl \
+| eqn -Tutf8 \
+| troff -man -Tutf8 \
+| grotty >"$t2";
# shellcheck disable=SC2206 # We want only non-empty variables in the array.