Hi Ralph, On 4/10/23 17:56, Ralph Corderoy wrote: > Hi Alejandro, > >> I'd use .cat.set for UTF8/ASCII pages, and .html.set for HTML pages. > > Yes, I was thinking if a .tr was being turned into several formats then > I'd include troff's -T device in the filename. > > But as a general case, where just one -T is being targeted, a plain > chapter.set seems sufficient.
I applied the following patch to the Linux man-pages. Cheers, Alex --- commit 59e44e4511391a98f531c08aaba17391f3b7075b (HEAD -> master, korg/master) gpg: Signature made Fri Apr 21 16:21:19 2023 CEST gpg: using RSA key EA3A87F0A4EBA030E45DF2409E8C1AFBBEFFDB32 gpg: Good signature from "Alejandro Colomar <a...@kernel.org>" [ultimate] gpg: aka "Alejandro Colomar Andres <alx.manpa...@gmail.com>" [ultimate] Author: Alejandro Colomar <a...@kernel.org> Date: Tue Apr 11 22:13:00 2023 +0200 build-catman.mk: Use .set suffix for troff(1) output Suggested-by: Ralph Corderoy <ra...@inputplus.co.uk> Signed-off-by: Alejandro Colomar <a...@kernel.org> diff --git a/share/mk/build/catman.mk b/share/mk/build/catman.mk index 8c95931e5..4d0683737 100644 --- a/share/mk/build/catman.mk +++ b/share/mk/build/catman.mk @@ -58,7 +58,7 @@ GROTTY := grotty _MAN_tbl := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.tbl,$(NONSO_MAN)) _MAN_eqn := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.eqn,$(NONSO_MAN)) _CATMAN_troff := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.cat.troff,$(NONSO_MAN)) -_CATMAN_grotty := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.cat.grotty,$(NONSO_MAN)) +_CATMAN_set := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.cat.set,$(NONSO_MAN)) _CATMAN := $(patsubst $(MANDIR)/%,$(_MANDIR)/%.cat,$(NONSO_MAN)) @@ -75,11 +75,11 @@ $(_CATMAN_troff): %.cat.troff: %.eqn | $$(@D)/ $(EQN) -T$(NROFF_OUT_DEVICE) $(EQNFLAGS) <$< 2>&1 >$@ \ | ( ! $(GREP) ^ ) -$(_CATMAN_grotty): %.cat.grotty: %.cat.troff | $$(@D)/ +$(_CATMAN_set): %.cat.set: %.cat.troff | $$(@D)/ $(info TROFF $@) $(TROFF) -T$(NROFF_OUT_DEVICE) $(TROFFFLAGS) <$< >$@ -$(_CATMAN): %.cat: %.cat.grotty | $$(@D)/ +$(_CATMAN): %.cat: %.cat.set | $$(@D)/ $(info GROTTY $@) $(GROTTY) $(GROTTYFLAGS) <$< >$@ @@ -97,7 +97,7 @@ build-catman-eqn: $(_CATMAN_troff) @: .PHONY: build-catman-troff -build-catman-troff: $(_CATMAN_grotty) +build-catman-troff: $(_CATMAN_set) @: .PHONY: build-catman-grotty -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
OpenPGP_signature
Description: OpenPGP digital signature