Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config Minor tweak to list formatting.



details:   https://anonhg.NetBSD.org/src/rev/de8a9557e91b
branches:  trunk
changeset: 936617:de8a9557e91b
user:      uwe <uwe%NetBSD.org@localhost>
date:      Fri Jul 31 21:25:34 2020 +0000

description:
Minor tweak to list formatting.

Where necessary, use .Bl -ohang -compact and explicit .Pp to be able
to group multiple config directives (separate .It) by omitting .Pp
between them.

While here, add a .|" comment before .It to make them more visible
when editing.

diffstat:

 usr.bin/config/config.5 |  75 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 71 insertions(+), 4 deletions(-)

diffs (truncated from 346 to 300 lines):

diff -r fa35dbbf5b9b -r de8a9557e91b usr.bin/config/config.5
--- a/usr.bin/config/config.5   Fri Jul 31 20:57:38 2020 +0000
+++ b/usr.bin/config/config.5   Fri Jul 31 21:25:34 2020 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: config.5,v 1.39 2020/07/31 20:01:42 uwe Exp $
+.\" $NetBSD: config.5,v 1.40 2020/07/31 21:25:34 uwe Exp $
 .\"
 .\"  Copyright (c) 2006, 2007 The NetBSD Foundation.
 .\"  All rights reserved.
@@ -249,7 +249,9 @@
 .\"
 .Ss CONTEXT NEUTRAL STATEMENTS
 .\"
-.Bl -ohang
+.Bl -ohang -compact
+.\"
+.Pp
 .It Ic version Ar yyyymmdd
 Indicates the syntax version used by the rest of the file, or until the next
 .Ic version
@@ -258,11 +260,15 @@
 A given
 .Xr config 1
 binary might only be compatible with a limited range of version numbers.
+.\"
+.Pp
 .It Ic include Ar path
 Includes a file.
 The path is relative to the top of the kernel source tree, or the inner-most
 defined
 .Ic prefix .
+.\"
+.Pp
 .It Ic cinclude Ar path
 Conditionally includes a file.
 Contrary to
@@ -270,6 +276,8 @@
 it will not produce an error if the file does not exist.
 The argument obeys the same rules as for
 .Ic include .
+.\"
+.Pp
 .It Ic prefix Op Ar path
 If
 .Ar path
@@ -286,6 +294,8 @@
 .Ar path
 argument is either absolute or relative to the current defined prefix, which
 defaults to the top of the kernel source tree.
+.\"
+.Pp
 .It Ic buildprefix Op Ar path
 If
 .Ar path
@@ -299,8 +309,11 @@
 .Ar path
 argument is relative to the current defined buildprefix, which
 defaults to the top of the kernel build directory.
-When prefix is either absolute or relative out of the kernel source tree (../),
+When prefix is either absolute or relative out of the kernel source tree
+.Pq Pa \&../ ,
 buildprefix must be defined.
+.\"
+.Pp
 .It Ic ifdef Ar attribute
 .It Ic ifndef Ar attribute
 .It Ic elifdef Ar attribute
@@ -325,6 +338,7 @@
 .Ic prefix ,
 the preamble may contain the following optional statements:
 .Bl -ohang
+.\"
 .It Ic build Ar path
 Defines the build directory for the compilation of the kernel.
 It replaces the default of
@@ -333,6 +347,7 @@
 .Fl b
 parameter of
 .Xr config 1 .
+.\"
 .It Ic source Ar path
 Defines the directory in which the source of the kernel lives.
 It replaces the default of
@@ -352,7 +367,10 @@
 and the logic that binds them to the
 .Nx
 kernel will have to be added to the user-edited configuration file.
-.Bl -ohang
+.Pp
+.Bl -ohang -compact
+.\"
+.Pp
 .It Ic devclass Ar class
 Defines a special attribute, named
 .Em device class .
@@ -361,6 +379,8 @@
 translates that property by the rule that a device cannot depend on more than
 one device class, and will properly fill the configuration information file it
 generates according to that value.
+.\"
+.Pp
 .It Ic defflag Oo Ar file Oc Ar option Oo Ar option Oo Ar ... Oc Oc \
     Op : Ar dependencies
 Defines a boolean option, that can either be selected or be un-selected by the
@@ -379,6 +399,8 @@
 Several options can be combined in one header file, for convenience.
 The header file is created in the compilation directory, making them directly
 accessible by source files.
+.\"
+.Pp
 .It Ic defparam Oo Ar file Oc Ar option Oo = Ar value Oc \
     Oo := Ar lint-value Oc Oo Ar option Oo Ar ... Oc Oc Op : Ar dependencies
 Behaves like
@@ -397,6 +419,8 @@
 will use it as a value when generating a lint configuration with
 .Fl L ,
 and ignore it in all other cases.
+.\"
+.Pp
 .It Ic deffs Ar name Op Ar name Op Ar ...
 Defines a file-system name.
 It is no more than a regular option, as defined by
@@ -407,6 +431,8 @@
 statement instead of the
 .Ic options
 statement.
+.\"
+.Pp
 .It Ic obsolete defflag Oo Ar file Oc Ar option Op Ar option Op Ar ...
 .It Ic obsolete defparam Oo Ar file Oc Ar option Op Ar option Op Ar ...
 Those two statements are identical and mark the listed option names as
@@ -418,6 +444,8 @@
 The optional
 .Ar file
 argument should match the original definition of the option.
+.\"
+.Pp
 .It Ic define Ar attribute Oo Bro Ar locators Brc Oc Oo : Ar dependencies Oc
 Defines an
 .Ar attribute .
@@ -428,12 +456,16 @@
 declared attribute becomes an
 .Em interface attribute ,
 on which devices can attach.
+.\"
+.Pp
 .It Ic maxpartitions Ar number
 Defines the maximum number of partitions the disklabels for the considered
 architecture can hold.
 This statement cannot be repeated and should only appear in the
 .Pa std\&.$\&{ARCH\&}
 file.
+.\"
+.Pp
 .It Ic maxusers Ar min default max
 Indicates the range of values that will later be accepted by
 .Xr config 1
@@ -445,6 +477,8 @@
 statement in the configuration file, the value
 .Ar default
 is used instead.
+.\"
+.Pp
 .It Ic device Ar base Oo Bro Ar locators Brc Oc Oo : dependencies Oc
 Declares a device of name
 .Ar base .
@@ -465,6 +499,8 @@
 However, it is the responsibility of the developer to add the relevant
 .Fn CFATTACH_DECL_NEW
 line to the source of the device's driver.
+.\"
+.Pp
 .It Ic attach Ar base Ic at Ar attr Oo , Ar attr Oo , Ar ... Oc Oc Oo Ic with \
     Ar name Oc Oo : dependencies Oc
 All devices must have at least one declared attachment.
@@ -493,10 +529,14 @@
 as a conditional element in a
 .Ic file
 statement.
+.\"
+.Pp
 .It Ic defpseudo Ar base Oo : dependencies Oc
 Declares a pseudo-device.
 Those devices don't need an attachment to be declared, they will always be
 attached if they were selected by the user.
+.\"
+.Pp
 .It Ic defpseudodev Ar base Oo Bro Ar locators Brc Oc Oo : dependencies Oc
 Declares a pseudo-device.
 Those devices don't need an attachment to be declared, they will always be
@@ -512,6 +552,8 @@
 Interface attributes can also be defined in the
 .Ar dependencies
 list.
+.\"
+.Pp
 .It Ic file Ar path Oo Ar condition Oc Oo Ic needs-count Oc \
     Oo Ic needs-flag Oc Op Ic compile with Ar rule
 Adds a source file to the list of files to be compiled into the kernel, if the
@@ -571,6 +613,8 @@
 The path is relative to the top of the kernel source tree, or the inner-most
 defined
 .Ic prefix .
+.\"
+.Pp
 .It Ic object Ar path Op Ar condition
 Adds an object file to the list of objects to be linked into the kernel, if the
 .Ar conditions
@@ -580,6 +624,8 @@
 The path is relative to the top of the kernel source tree, or the inner-most
 defined
 .Ic prefix .
+.\"
+.Pp
 .It Ic device-major Ar base Oo Ic char Ar number Oc Oo Ic block Ar number Oc \
     Op Ar condition
 Associates a major device number with the device
@@ -599,6 +645,7 @@
 .Ss OPTIONS SELECTION
 .\"
 .Bl -ohang
+.\"
 .It Ic machine Ar machine Op Ar arch Op Ar subarch Op Ar ...
 The
 .Ic machine
@@ -625,6 +672,7 @@
 .Ar arch
 and each of the
 .Ar subarch .
+.\"
 .It Ic package Ar path
 Simpler version of:
 .Bd -literal -offset indent
@@ -632,12 +680,15 @@
 include FILE
 prefix
 .Ed
+.\"
 .It Ic ident Ar string
 Defines the identification string of the kernel.
 This statement is optional, and the name of the main configuration file will be
 used as a default value.
+.\"
 .It Ic no ident
 Deletes any pre-existing identification string of the kernel.
+.\"
 .It Ic maxusers Ar number
 Despite its name, this statement does not limit the maximum number of users on
 the system.
@@ -648,6 +699,7 @@
 parameter is used for example to compute the maximum number of opened files,
 and the maximum number of processes, which itself is used to adjust a few
 other parameters.
+.\"
 .It Ic options Ar name Oo = Ar value Oc Op , Ar name Oo = Ar \
     value Oc , Ar ...
 Selects the option
@@ -667,16 +719,20 @@
 warning, and the new
 .Ic options
 statement replaces the original.
+.\"
 .It Ic no options Ar name Op , Ar name Op , Ar ...
 Un-selects the option
 .Ar name .
 If option
 .Ar name
 has not previously been selected, the statement produces a warning.
+.\"
 .It Ic file-system Ar name Op , Ar name Op , Ar ...
 Adds support for all the listed file-systems.
+.\"
 .It Ic no file-system Ar name Op , Ar name Op , Ar ...
 Removes support for all the listed file-systems.
+.\"
 .It Ic config Ar name Ic root on Ar device Oo Ic type Ar fs Oc Op Ic dumps on \
     Ar device
 Adds
@@ -703,10 +759,12 @@
 At least one
 .Ic config
 statement must appear in the configuration file.
+.\"
 .It Ic no config Ar name
 Removes
 .Ar name
 from the list of kernel binaries to compile from the configuration file.
+.\"
 .It Ar instance Ic at Ar attachment Op Ar locator specification
 Configures an instance of a device attaching at a specific location in the
 device tree.
@@ -719,6 +777,7 @@
 for
 .Ar attachment
 and the locators.
+.\"
 .It Ic no Ar instance Op Ic at Ar attachment
 Removes the previously configured instances of a device that exactly match the
 given specification.
@@ -731,6 +790,7 @@



Home | Main Index | Thread Index | Old Index