[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] [patch v2 04/26] Man page: reorganize sections
From: |
Jean Delvare |
Subject: |
[Quilt-dev] [patch v2 04/26] Man page: reorganize sections |
Date: |
Tue, 26 Jul 2022 14:43:12 +0200 |
User-agent: |
quilt/0.67 |
Use only section names endorsed by man-pages(7), and put them in the
recommended order.
Use subsection macro (SS) where helpful.
[JD: Preserve the EXAMPLE section]
---
doc/quilt.1.in | 39 +++++++++++++++++++++------------------
1 file changed, 21 insertions(+), 18 deletions(-)
--- quilt.orig/doc/quilt.1.in 2022-07-05 15:25:26.926109502 +0200
+++ quilt/doc/quilt.1.in 2022-07-05 22:07:33.414771223 +0200
@@ -122,10 +122,10 @@ and refreshing patches
Files in the .pc directory are automatically removed when they are
no longer needed, so there is no need to clean up manually.
.
-.SH QUILT COMMANDS REFERENCE
+.SS Quilt commands reference
@REFERENCE@
.
-.SH COMMON OPTIONS TO ALL COMMANDS
+.SH OPTIONS
.IP \"\\fB--trace\\fP\" 8
Runs the command in bash trace mode (-x).
For internal debugging.
@@ -137,7 +137,7 @@ The special value \"-\" causes quilt not
.IP \"\\fB--version\\fP\" 8
Print the version number and exit immediately.
.
-.SH EXIT STATUS
+.SH "EXIT STATUS"
The exit status is 0 if the sub-command was successfully executed, and
1 in case of error.
.PP
@@ -147,7 +147,19 @@ This happens in particular when asking t
already pushed, or asking to pop when the whole stack is already popped.
This behavior is intended to ease the scripting around quilt.
.
-.SH EXAMPLE OF WORKING TREE
+.SH ENVIRONMENT
+In addition to that, quilt recognizes the following variables:
+.IP EDITOR 4
+The program to run to edit files.
+If it isn't redefined in the configuration file, $EDITOR as defined in
+the environment will be used.
+.IP LESS 4
+The arguments used to invoke the pager.
+Inherits the existing value of $LESS if LESS is already set in the
+environment, otherwise defaults to "-FRSX".
+.
+.SH FILES
+.SS "Example of working tree"
.fam C
.RS
.nf
@@ -180,10 +192,7 @@ This directory can usually be regenerate
content of the patches/ directory (provided that all patches were
regenerated before the removal).
.
-.SH EXAMPLE
-Please refer to the pdf documentation for a full example of use.
-.
-.SH CONFIGURATION FILE
+.SS "Configuration file"
Upon startup, quilt evaluates the file .quiltrc in the user's home
directory, /etc/quilt.quiltrc if the former file does not exist, or
the file specified with the --quiltrc option.
@@ -193,15 +202,6 @@ QUILT_${COMMAND}_ARGS variable.
For example, QUILT_DIFF_ARGS="--color=auto" causes the output of quilt
diff to be syntax colored when writing to a terminal.
.PP
-In addition to that, quilt recognizes the following variables:
-.IP EDITOR 4
-The program to run to edit files.
-If it isn't redefined in the configuration file, $EDITOR as defined in
-the environment will be used.
-.IP LESS 4
-The arguments used to invoke the pager.
-Inherits the existing value of $LESS if LESS is already set in the
-environment, otherwise defaults to "-FRSX".
.IP QUILT_DIFF_OPTS 4
Additional options that quilt shall pass to GNU diff when generating
patches.
@@ -340,7 +340,10 @@ in the distribution).
This man page was written by Martin Quinson, based on information found
in the pdf documentation, and in the help messages of each commands.
.
-.SH SEE ALSO
+.SH EXAMPLE
+Please refer to the pdf documentation for a full example of use.
+.
+.SH "SEE ALSO"
The pdf documentation, which should be under @DOCSUBDIR@/quilt.pdf.
Note that some distributors compress this file.
.BR zxpdf ( 1 )
- [Quilt-dev] [patch v2 00/26] doc/quilt.1.in refactor revisited, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 01/26] Man page: the man macro RE is given an argument when it does not need one, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 02/26] Man page: eliminate or replace blank lines, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 03/26] Man page: break input lines at all sentence endings, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 04/26] Man page: reorganize sections,
Jean Delvare <=
- [Quilt-dev] [patch v2 05/26] Man page: use font macros instead of font escapes, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 06/26] Man page: use groff_man(7)s EX and EE macros for examples, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 07/26] Man page: escape ASCII hyphen-minus characters used as such, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 08/26] Man page: make synopsis comprehensive, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 09/26] Man page: use character escapes for directional quotes and spacing tilde, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 10/26] Man page: use "e.g." correctly, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 11/26] Man page: italicize work titles, Jean Delvare, 2022/07/26
- [Quilt-dev] [patch v2 12/26] Man page: update internal and external cross-references, Jean Delvare, 2022/07/26