public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Alejandro Colomar <alx@kernel.org>
To: "G. Branden Robinson" <g.branden.robinson@gmail.com>
Cc: linux-man@vger.kernel.org
Subject: Re: [PATCH 1/3] man2/syscalls.2: srcfix (1/3)
Date: Sat, 27 Apr 2024 00:27:31 +0200	[thread overview]
Message-ID: <ZiwqU06Pg4Szfm3_@debian> (raw)
In-Reply-To: <20240426214403.mvskw552dm2wyaus@illithid>

[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]

Hi Branden,

On Fri, Apr 26, 2024 at 04:44:03PM -0500, G. Branden Robinson wrote:
> Migrate table entries from using font selection escape sequences to font
> alternation macros to set man page cross references.
> 
> This change was automatically driven by the following sed(1) script.
> 
> $ cat pre-MR-migrate-cross-references-1.sed
> /^\.\\"/b
> /^\\fB[^\\]*\\fP([0-9][^\]*).*T{/s/\\fB\([^\\]*\)\\fP(\([0-9][^\]*\))\(.*\)/T{\
> .BR \1 (\2)\
> T}\3/

Are you sure?  I tried running it, but got a different diff.

> 
> Signed-off-by: "G. Branden Robinson" <g.branden.robinson@gmail.com>
> 
> ---
>  man2/syscalls.2 | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
> 
> diff --git a/man2/syscalls.2 b/man2/syscalls.2
> index 7a7d6d730..979dba538 100644
> --- a/man2/syscalls.2
> +++ b/man2/syscalls.2
> @@ -187,7 +187,8 @@ .SS System call list
>  \fBchdir\fP(2)	1.0
>  \fBchmod\fP(2)	1.0
>  \fBchown\fP(2)	2.2	T{
> -See \fBchown\fP(2) for
> +See .BR chown (2)
> +for
>  version details
>  T}
>  \fBchown32\fP(2)	2.4

I see the following, after applying this script:

	$ git diff | head -n30
	diff --git a/man2/syscalls.2 b/man2/syscalls.2
	index 7a7d6d730..278fa3361 100644
	--- a/man2/syscalls.2
	+++ b/man2/syscalls.2
	@@ -146,7 +146,9 @@ .SS System call list
	 \fB_llseek\fP(2)	1.2
	 \fB_newselect\fP(2)	2.0
	 \fB_sysctl\fP(2)	2.0	Removed in 5.5
	-\fBaccept\fP(2)	2.0	T{
	+T{
	+.BR accept (2)
	+T}	2.0	T{
	 See notes on \fBsocketcall\fP(2)
	 T}
	 \fBaccept4\fP(2)	2.6.28
	@@ -162,22 +164,30 @@ .SS System call list
	 .\" 91e040a79df73d371f70792f30380d4e44805250
	 \fBarc_usr_cmpxchg\fP(2)	4.9	ARC only
	 .\" x86: 79170fda313ed5be2394f87aa2a00d597f8ed4a1
	-\fBarch_prctl\fP(2)	2.6	T{
	+T{
	+.BR arch_prctl (2)
	+T}	2.6	T{
	 x86_64, x86 since 4.12
	 T}
	 .\" 9674cdc74d63f346870943ef966a034f8c71ee57
	 \fBatomic_barrier\fP(2)	2.6.34	m68k only
	 \fBatomic_cmpxchg_32\fP(2)	2.6.34	m68k only
	-\fBbdflush\fP(2)	1.2	T{
	+T{

Did you maybe apply the scripts in a different order by accident?

Have a lovely ngiht!
Alex

-- 
<https://www.alejandro-colomar.es/>

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

  reply	other threads:[~2024-04-26 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-26 21:44 [PATCH 1/3] man2/syscalls.2: srcfix (1/3) G. Branden Robinson
2024-04-26 22:27 ` Alejandro Colomar [this message]
2024-04-26 22:48   ` G. Branden Robinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZiwqU06Pg4Szfm3_@debian \
    --to=alx@kernel.org \
    --cc=g.branden.robinson@gmail.com \
    --cc=linux-man@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox