bug-ncurses
[Top][All Lists]
Advanced

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

Re: [PATCH 14/52] man/curs_color.3x: Recast.


From: G. Branden Robinson
Subject: Re: [PATCH 14/52] man/curs_color.3x: Recast.
Date: Sun, 24 Dec 2023 11:11:50 -0600

At 2023-12-24T11:48:02-0500, Thomas Dickey wrote:
> I do use a separate script -- several in fact -- but the one that
> flagged this checks that the macros which are copied into lots of
> places are identical (and tries to warn about definitions that are
> missing).
> 
> It's not general-purpose of course...

Understandable.  I'll go ahead and share the idea that has settled into
the lead position in my brain for resolving this sort of thing.

I think a roffish solution of using `so` (source) requests to house
common code like this would work well.  We can have any number of such
snippets of man(7) in the man/ directory.

And we can avoid the problem of figuring out where to store such
snippets in the installation target by simply not doing so, instead
running soelim(1) over the man page documents as part of the
installation process.  (Depending on configuration options, there's
already a pipeline to gzip them anyway.)

That would solve several DRY problems for us in one fell swoop.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

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