groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A file suffix for troff's output.


From: Alejandro Colomar
Subject: Re: A file suffix for troff's output.
Date: Fri, 21 Apr 2023 16:28:47 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1

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 <alx@kernel.org>" [ultimate]
gpg:                 aka "Alejandro Colomar Andres <alx.manpages@gmail.com>" 
[ultimate]
Author: Alejandro Colomar <alx@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 <ralph@inputplus.co.uk>
    Signed-off-by: Alejandro Colomar <alx@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

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]