From: Alejandro Colomar Date: Sun, 22 Dec 2024 14:28:18 +0000 (+0100) Subject: src/bin/diffman: Run the entire groff pipeline X-Git-Tag: man-pages-6.10~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ac49476c1dd6df815b83a487dda7040d701d05f;p=thirdparty%2Fman-pages.git src/bin/diffman: Run the entire groff pipeline Signed-off-by: Alejandro Colomar --- diff --git a/src/bin/diffman b/src/bin/diffman index 172a825ec..40c33cbe1 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.