]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
src/bin/diffman: Run the entire groff pipeline
authorAlejandro Colomar <alx@kernel.org>
Sun, 22 Dec 2024 14:28:18 +0000 (15:28 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 22 Dec 2024 15:48:49 +0000 (16:48 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/bin/diffman

index 172a825ecd78769f8864f1bb176a30bbc643a265..40c33cbe1705a185dcb6320869862471344a9c7d 100755 (executable)
@@ -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.