Re: [PATCH 08/10] console_codes.4, inode.7: srcfix

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

 



Hi Branden,

On Sat, Aug 31, 2024 at 10:26:03PM GMT, G. Branden Robinson wrote:
> Prepare for `MR` macro migration.
> 
> Rewrite man page cross references inside tbl(1) text blocks to use
> man(7) macros instead of troff(1) font selection escape sequences.
> 
> $ cat fix-man-page-refs-in-tbl-tables-1.sed
> 	# Rewrite man page cross references inside tbl(1) text blocks to use
> 	# man(7) macros instead of troff(1) font selection escape sequences.
> 	/^\.\\"/b
> 	# Case: (handled in commit 9d21f97766, 2024-07-27)
> 	# T{
> 	# See \fBchown\fP(2) for
> 	# T}
> 	/T{$/,/^T}/s/ \\fB\([^\\]*\)\\fP\(([0-9][a-z]*)\) /\
> 	.BR \1 \2\
> 	/
> 	# Case:
> 	# T{
> 	# the map that is loaded by the utility \fBmapscrn\fP(8).
> 	# T}
> 	/T{$/,/^T}/s/ \\fB\([^\\]*\)\\fP\(([0-9][a-z]*)\)\([^0-9a-z]\+\)$/\
> 	.BR \1 \2\3/
> 	# Case:
> 	# T{
> 	# by \fBxterm\fP(1)'s \fBhpLowerleftBugCompat\fP resource).
> 	# T}
> 	/T{$/,/^T}/s/ \\fB\([^\\]*\)\\fP\(([0-9][a-z]*)\)\([^ ]\+\) \(.*\)/\
> 	.BR \1 \2\3\
> 	\4/
> 
> Signed-off-by: "G. Branden Robinson" <g.branden.robinson@xxxxxxxxx>

I've applied all the patches in this set until here, including this one.
While this one has several cases handled in the script, each only
handles one case, so it seems reasonable to me.  Thanks!

Cheers,
Alex

P.S.:  While patch 1/10 oddly is separate from the thread, this is much
nicer than having all separate.  I'm not sure why that happened.  Maybe
you prepared patch 1 separately?  :)

> ---
>  man/man4/console_codes.4 | 7 +++++--
>  man/man7/inode.7         | 3 ++-
>  2 files changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/man/man4/console_codes.4 b/man/man4/console_codes.4
> index dfbb672ec..a12d21660 100644
> --- a/man/man4/console_codes.4
> +++ b/man/man4/console_codes.4
> @@ -173,7 +173,8 @@ .SS Linux console controls
>  Select null mapping \- straight to character ROM.
>  T}
>  ESC ( K		T{
> -Select user mapping \- the map that is loaded by the utility \fBmapscrn\fP(8).
> +Select user mapping \- the map that is loaded by the utility
> +.BR mapscrn (8).
>  T}
>  ESC )		T{
>  Start sequence defining G1 (followed by one of B, 0, U, K, as above).
> @@ -709,7 +710,9 @@ .SS Comparisons with other terminals
>  l l lx.
>  ESC F		T{
>  Cursor to lower left corner of screen (if enabled
> -by \fBxterm\fP(1)'s \fBhpLowerleftBugCompat\fP resource).
> +by
> +.BR xterm (1)'s
> +\fBhpLowerleftBugCompat\fP resource).
>  T}
>  ESC l		Memory lock (per HP terminals).
>  		Locks memory above the cursor.
> diff --git a/man/man7/inode.7 b/man/man7/inode.7
> index 497e30e8a..1fd3de85d 100644
> --- a/man/man7/inode.7
> +++ b/man/man7/inode.7
> @@ -347,7 +347,8 @@ .SS The file type and mode
>  .TS
>  lB l lx.
>  S_ISUID	  04000	T{
> -set-user-ID bit (see \fBexecve\fP(2))
> +set-user-ID bit (see
> +.BR execve (2))
>  T}
>  S_ISGID	  02000	T{
>  set-group-ID bit (see below)
> -- 
> 2.30.2
> 



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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux