Re: .TH 4th field (Was: [PATCH 1/2] system_data_types.7: srcfix)

Alejandro Colomar
2022-08-20T13:05:11Z

[-- Attachment #1.1: Type: text/plain, Size: 1305 bytes --]

Hi Branden,

On 8/20/22 14:40, Alejandro Colomar wrote:
> Hi Branden,
>
> On 8/20/22 14:20, G. Branden Robinson wrote:
[...]
>> I would add " (in preparation)" to the string, and have the script that
>> finalizes a release strip that out.
>
> I'll use "Linux man-pages (unreleased)" for the repo pages, just to be
> more similar to Debian's changelog format.  I don't like inventing stuff
> if I don't need to.  Does it make sense to you?
>
> Having a fixed string there will be good, since that way I won't disturb
> the script updating the last-modified date.

I think this will be the definitive commit:

All pages: Replace the 4th argument to .TH by "Linux man-pages
<version>"

Scripted change:

$ find man* -type f \
|xargs sed -Ei '/^.TH /s/(.TH +[^ ]+ +[^ ]+ +[^ ]+) +"[^"]*"/\1
"Linux man-pages (unreleased)"/'

$ find man* -type f \
|xargs sed -Ei '/^.TH /s/(.TH +[^ ]+ +[^ ]+ +[^ ]+) +[^" ]+/\1
"Linux man-pages (unreleased)"/'

$ git restore man5/tzfile.5
$ git restore man8/zdump.8
$ git restore man8/zic.8
$ git restore man7/bpf-helpers.7

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>

Cheers,

Alex

--
Alejandro Colomar
<http://www.alejandro-colomar.es/>

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]