Skip to content

Commit 0f38e9b

Browse files
committed
documentation: run pandoc against man page sources
1 parent b596310 commit 0f38e9b

File tree

3 files changed

+73
-110
lines changed

3 files changed

+73
-110
lines changed

source/bear/man/bear.1

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
.\" Automatically generated by Pandoc 2.19.2
1+
.\" Automatically generated by Pandoc 2.14.0.3
22
.\"
3-
.\" Define V font for inline verbatim, using C font in formats
4-
.\" that render this, and otherwise B font.
5-
.ie "\f[CB]x\f[]"x" \{\
6-
. ftr V B
7-
. ftr VI BI
8-
. ftr VB B
9-
. ftr VBI BI
10-
.\}
11-
.el \{\
12-
. ftr V CR
13-
. ftr VI CI
14-
. ftr VB CB
15-
. ftr VBI CBI
16-
.\}
173
.TH "BEAR" "1" "Jan 02, 2023" "Bear User Manuals" ""
184
.hy
195
.SH NAME
@@ -48,8 +34,7 @@ Enable verbose logging.
4834
.TP
4935
--output \f[I]file\f[R]
5036
Specify output file.
51-
(Default file name provided.)
52-
The output is a JSON compilation database.
37+
(Default file name provided.) The output is a JSON compilation database.
5338
.TP
5439
--append
5540
Use previously generated output file and append the new entries to it.
@@ -65,44 +50,44 @@ The configuration file captures how the output should be formatted and
6550
which entries it shall contain.
6651
.TP
6752
--force-preload
68-
Force to use the dynamic linker method of \f[V]intercept\f[R] command.
53+
Force to use the dynamic linker method of \f[C]intercept\f[R] command.
6954
.TP
7055
--force-wrapper
71-
Force to use the compiler wrapper method of \f[V]intercept\f[R] command.
56+
Force to use the compiler wrapper method of \f[C]intercept\f[R] command.
7257
.SH COMMANDS
7358
.TP
74-
\f[V]bear-intercept(1)\f[R]
75-
Intercepts events that happend during the execution of the build
59+
\f[B]\f[CB]bear-intercept(1)\f[B]\f[R]
60+
Intercepts events that happened during the execution of the build
7661
command.
7762
.TP
78-
\f[V]bear-citnames(1)\f[R]
79-
Deduce the sematics of the commands captured by
80-
\f[V]bear-intercept(1)\f[R].
63+
\f[B]\f[CB]bear-citnames(1)\f[B]\f[R]
64+
Deduce the semantics of the commands captured by
65+
\f[C]bear-intercept(1)\f[R].
8166
.SH OUTPUT
8267
.PP
8368
The JSON compilation database definition changed over time.
8469
The current version of Bear generates entries where:
8570
.TP
86-
\f[V]directory\f[R]
71+
\f[B]\f[CB]directory\f[B]\f[R]
8772
has absolute path.
8873
.TP
89-
\f[V]file\f[R]
74+
\f[B]\f[CB]file\f[B]\f[R]
9075
has absolute path.
9176
.TP
92-
\f[V]output\f[R]
77+
\f[B]\f[CB]output\f[B]\f[R]
9378
has absolute path.
9479
.TP
95-
\f[V]arguments\f[R]
96-
used instead of \f[V]command\f[R] to avoid shell escaping problems.
97-
(Configuration can force to emit the \f[V]command\f[R] field.)
98-
The compiler as the first argument has absolute path.
80+
\f[B]\f[CB]arguments\f[B]\f[R]
81+
used instead of \f[C]command\f[R] to avoid shell escaping problems.
82+
(Configuration can force to emit the \f[C]command\f[R] field.) The
83+
compiler as the first argument has absolute path.
9984
Some non compilation related flags are filtered out from the final
10085
output.
10186
.SH CONFIG FILE
10287
.PP
103-
Read \f[V]citnames\f[R] man page for the content of this file.
104-
\f[V]bear\f[R] is not reading the content of this file, but passing the
105-
file name to \f[V]citnames\f[R].
88+
Read \f[C]bear-citnames(1)\f[R] man page for the content of this file.
89+
\f[C]bear\f[R] is not reading the content of this file, but passing the
90+
file name to \f[C]bear citnames\f[R] command.
10691
.SH EXIT STATUS
10792
.PP
10893
The exit status of the program is the exit status of the build command.
@@ -123,15 +108,16 @@ The other common cause for empty output is that the build has a
123108
\[lq]configure\[rq] step, which captures the compiler to build the
124109
project.
125110
In case of Bear is using the \f[I]wrapper\f[R] mode (read
126-
\f[V]intercept\f[R] man page), it needs to run the configure step with
127-
Bear too (and discard that output), before run the build with Bear.
111+
\f[C]bear-intercept(1)\f[R] man page), it needs to run the configure
112+
step with Bear too (and discard that output), before run the build with
113+
Bear.
128114
.PP
129115
There could be many reasons for any of these failures.
130116
It\[cq]s better to consult with the project wiki page for known
131117
problems, before open a bug report.
132118
.SH COPYRIGHT
133119
.PP
134-
Copyright (C) 2012-2022 by L\['a]szl\['o] Nagy
120+
Copyright (C) 2012-2023 by L\['a]szl\['o] Nagy
135121
<https://github.com/rizsotto/Bear>
136122
.SH AUTHORS
137123
L\['a]szl\['o] Nagy.

source/citnames/man/bear-citnames.1

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
.\" Automatically generated by Pandoc 2.19.2
1+
.\" Automatically generated by Pandoc 2.14.0.3
22
.\"
3-
.\" Define V font for inline verbatim, using C font in formats
4-
.\" that render this, and otherwise B font.
5-
.ie "\f[CB]x\f[]"x" \{\
6-
. ftr V B
7-
. ftr VI BI
8-
. ftr VB B
9-
. ftr VBI BI
10-
.\}
11-
.el \{\
12-
. ftr V CR
13-
. ftr VI CI
14-
. ftr VB CB
15-
. ftr VBI CBI
16-
.\}
173
.TH "BEAR-CITNAMES" "1" "Jan 02, 2023" "Bear User Manuals" ""
184
.hy
195
.SH NAME
@@ -49,14 +35,14 @@ Enable verbose logging.
4935
.TP
5036
--input \f[I]file\f[R]
5137
Specify input file.
52-
(Default file name provided.)
53-
The input is a command execution list, with some extra information.
38+
(Default file name provided.) The input is a command execution list,
39+
with some extra information.
5440
The syntax is detailed in a separate section.
5541
.TP
5642
--output \f[I]file\f[R]
5743
Specify output file.
58-
(Default file name provided.)
59-
The output is currently a JSON compilation database.
44+
(Default file name provided.) The output is currently a JSON compilation
45+
database.
6046
.TP
6147
--append
6248
Use previously generated output file and append the new entries to it.
@@ -70,8 +56,8 @@ entries.
7056
Allow the program to verify file location checks on the current machine
7157
it runs.
7258
(Default value provided.
73-
Run help to query it.)
74-
This is important if the execution list is not from the current host.
59+
Run help to query it.) This is important if the execution list is not
60+
from the current host.
7561
.TP
7662
--config \f[I]file\f[R]
7763
Specify a configuration file.
@@ -86,22 +72,22 @@ it recognized at all.
8672
.SH OBSERVABILITY
8773
.PP
8874
Any insight about the command recognition logic can be observed with
89-
\f[V]--verbose\f[R] flag on the standard error.
75+
\f[C]--verbose\f[R] flag on the standard error.
9076
Otherwise, the command is silent.
9177
.SH INPUT FILE
9278
.PP
9379
It\[cq]s a JSON file, with the command execution history.
9480
(Plus some metadata, that is useful for debugging the application which
95-
was produced it.)
96-
This file can be produced by the \f[V]bear intercept\f[R] command, which
97-
records the process executions of a build.
81+
was produced it.) This file can be produced by the
82+
\f[C]bear intercept\f[R] command, which records the process executions
83+
of a build.
9884
.PP
9985
Read more about the syntax of the file in the
100-
\f[V]bear-intercept(1)\f[R] man page.
86+
\f[C]bear-intercept(1)\f[R] man page.
10187
.SH OUTPUT FILE
10288
.PP
10389
Currently, the only output format is the JSON compilation database.
104-
Read more about the syntax of that in the \f[V]bear(1)\f[R] man page.
90+
Read more about the syntax of that in the \f[C]bear(1)\f[R] man page.
10591
.SH CONFIG FILE
10692
.PP
10793
The config file influences the command recognition (by the section
@@ -110,7 +96,7 @@ The config file influences the command recognition (by the section
11096
.PP
11197
The config file is optional.
11298
The program will use default values, which can be dumped with the
113-
\f[V]--verbose\f[R] flags.
99+
\f[C]--verbose\f[R] flags.
114100
.PP
115101
Some parts of the file has overlap with the command line arguments.
116102
If both present the command line argument overrides the config file
@@ -133,7 +119,8 @@ values.
133119
\[dq]content\[dq]: {
134120
\[dq]include_only_existing_source\[dq]: true,
135121
\[dq]paths_to_include\[dq]: [],
136-
\[dq]paths_to_exclude\[dq]: []
122+
\[dq]paths_to_exclude\[dq]: [],
123+
\[dq]duplicate_filter_fields\[dq]: \[dq]file_output\[dq]
137124
},
138125
\[dq]format\[dq]: {
139126
\[dq]command_as_array\[dq]: true,
@@ -144,46 +131,50 @@ values.
144131
\f[R]
145132
.fi
146133
.TP
147-
\f[V]compilation.compilers_to_recognize\f[R]
134+
\f[B]\f[CB]compilation.compilers_to_recognize\f[B]\f[R]
148135
where compiler can be specified, which are not yet recognized by
149136
default.
150-
The \f[V]executable\f[R] is an absolute path to the compiler.
151-
The \f[V]flags_to_add\f[R] is an optional attribute, which contains
137+
The \f[C]executable\f[R] is an absolute path to the compiler.
138+
The \f[C]flags_to_add\f[R] is an optional attribute, which contains
152139
flags which will append to the final output.
153140
(It\[cq]s a good candidate to use this for adding OpenMPI compiler
154-
wrapper flags from the \f[V]mpicc --showme:compile\f[R] output.)
155-
The \f[V]flags_to_remove\f[R] is an optional attribute, where the given
141+
wrapper flags from the \f[C]mpicc --showme:compile\f[R] output.) The
142+
\f[C]flags_to_remove\f[R] is an optional attribute, where the given
156143
flags will be removed for the final argument list.
157144
(The flags checked for equality only, no regex match.
158145
Flags with arguments are not good candidates to put here, because the
159146
removal logic is too simple for that.)
160147
.TP
161-
\f[V]compilation.compilers_to_exclude\f[R]
148+
\f[B]\f[CB]compilation.compilers_to_exclude\f[B]\f[R]
162149
this is an optional list of executables (with absolute path) which needs
163150
to be removed from the output.
164151
.TP
165-
\f[V]output.content\f[R]
166-
The \f[V]paths_to_include\f[R] and \f[V]paths_to_exclude\f[R] are for
152+
\f[B]\f[CB]output.content\f[B]\f[R]
153+
The \f[C]paths_to_include\f[R] and \f[C]paths_to_exclude\f[R] are for
167154
filter out entries from these directories.
168155
(Directory names can be absolute paths or relative to the current
169-
working directory if the \f[V]--run-checks\f[R] flag passed.)
170-
The \f[V]include_only_existing_source\f[R] allows or disables file check
171-
for the output.
172-
The \f[V]--run-checks\f[R] flag overrides this config value.
156+
working directory if the \f[C]--run-checks\f[R] flag passed.) The
157+
\f[C]include_only_existing_source\f[R] allows or disables file check for
158+
the output.
159+
The \f[C]--run-checks\f[R] flag overrides this config value.
160+
The \f[C]duplicate_filter_fields\f[R] select the method how duplicate
161+
entries are detected in the output.
162+
The possible values for this field are: \f[C]all\f[R], \f[C]file\f[R]
163+
and \f[C]file_output\f[R].
173164
.TP
174-
\f[V]output.format\f[R]
175-
The \f[V]command_as_array\f[R] controls which command field is emitted
165+
\f[B]\f[CB]output.format\f[B]\f[R]
166+
The \f[C]command_as_array\f[R] controls which command field is emitted
176167
in the output.
177-
True produces \f[V]arguments\f[R], false produces \f[V]command\f[R]
168+
True produces \f[C]arguments\f[R], false produces \f[C]command\f[R]
178169
field.
179-
The \f[V]drop_output_field\f[R] will disable the \f[V]output\f[R] field
170+
The \f[C]drop_output_field\f[R] will disable the \f[C]output\f[R] field
180171
from the output.
181172
.SH SEE ALSO
182173
.PP
183-
\f[V]bear(1)\f[R], \f[V]bear-intercept(1)\f[R]
174+
\f[C]bear(1)\f[R], \f[C]bear-intercept(1)\f[R]
184175
.SH COPYRIGHT
185176
.PP
186-
Copyright (C) 2012-2022 by L\['a]szl\['o] Nagy
177+
Copyright (C) 2012-2023 by L\['a]szl\['o] Nagy
187178
<https://github.com/rizsotto/Bear>
188179
.SH AUTHORS
189180
L\['a]szl\['o] Nagy.

source/intercept/man/bear-intercept.1

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
1-
.\" Automatically generated by Pandoc 2.19.2
1+
.\" Automatically generated by Pandoc 2.14.0.3
22
.\"
3-
.\" Define V font for inline verbatim, using C font in formats
4-
.\" that render this, and otherwise B font.
5-
.ie "\f[CB]x\f[]"x" \{\
6-
. ftr V B
7-
. ftr VI BI
8-
. ftr VB B
9-
. ftr VBI BI
10-
.\}
11-
.el \{\
12-
. ftr V CR
13-
. ftr VI CI
14-
. ftr VB CB
15-
. ftr VBI CBI
16-
.\}
173
.TH "BEAR-INTERCEPT" "1" "Sep 04, 2021" "Bear User Manuals" ""
184
.hy
195
.SH NAME
@@ -34,8 +20,8 @@ Depending on the interception mode the output might only contain a
3420
subset of the executed commands.
3521
Interception modes are:
3622
.IP \[bu] 2
37-
\f[I]preload\f[R] uses the \f[V]LD_PRELOAD\f[R] or
38-
\f[V]DYLD_INSERT_LIBRARIES\f[R] mechanisms provided by the dynamic
23+
\f[I]preload\f[R] uses the \f[C]LD_PRELOAD\f[R] or
24+
\f[C]DYLD_INSERT_LIBRARIES\f[R] mechanisms provided by the dynamic
3925
linker.
4026
The pre-loaded library hijacks the process execution calls, and executes
4127
a supervisor process, which reports the execution.
@@ -47,7 +33,7 @@ The wrapper sends execution report and calls the original program.
4733
The method fails when the build system is not flexible enough for
4834
interposing build tools.
4935
.PP
50-
The reports are collected by the \f[V]intercept\f[R] over a gRPC
36+
The reports are collected by the \f[C]intercept\f[R] over a gRPC
5137
interface, and written into an output file.
5238
.SH OPTIONS
5339
.TP
@@ -62,8 +48,8 @@ Enable verbose logging.
6248
.TP
6349
--output \f[I]file\f[R]
6450
Specify output file.
65-
(Default file name provided.)
66-
The output is a command execution list, with some extra information.
51+
(Default file name provided.) The output is a command execution list,
52+
with some extra information.
6753
The syntax is detailed in a separate section.
6854
.TP
6955
--force-preload
@@ -74,11 +60,11 @@ Force to use the wrapper method to intercept the children processes.
7460
.SH EXIT STATUS
7561
.PP
7662
The exit status of the program is the exit status of the build command.
77-
Except when the program itself crashes, then it sets to non zero.
63+
Except when the program itself crashes, then it sets to non-zero.
7864
.SH OUTPUT FILE
7965
.PP
8066
The output file has JSON lines (https://jsonlines.org/) format, where
81-
each line terminated with \f[V]\[rs]n\f[R] line separator and each line
67+
each line terminated with \f[C]\[rs]n\f[R] line separator and each line
8268
is a JSON object.
8369
.PP
8470
The JSON objects are process execution events: process start, process
@@ -89,26 +75,26 @@ this project.)
8975
.PP
9076
The potential problems you can face with are: the build with and without
9177
the interception behaves differently (eg.: the build crash with the
92-
\f[V]intercept\f[R] tool, but succeed otherwise).
78+
intercept tool, but succeed otherwise).
9379
The output is empty, and it failed to intercept the children process
9480
execution by the build command.
9581
.PP
9682
The most common cause for empty outputs is that the build command did
9783
not execute any commands.
9884
The reason for that could be, because incremental builds not running the
9985
compilers if everything is up-to-date.
100-
Remember, \f[V]intercept\f[R] does not understand the build file (eg.:
86+
Remember, this program does not understand the build file (eg.:
10187
makefile), but intercepts the executed commands.
10288
.PP
10389
There could be many reasons for any of these failures.
10490
It\[cq]s better to consult with the project wiki page for known
10591
problems, before open a bug report.
10692
.SH SEE ALSO
10793
.PP
108-
\f[V]bear(1)\f[R]
94+
\f[C]bear(1)\f[R]
10995
.SH COPYRIGHT
11096
.PP
111-
Copyright (C) 2012-2022 by L\['a]szl\['o] Nagy
97+
Copyright (C) 2012-2023 by L\['a]szl\['o] Nagy
11298
<https://github.com/rizsotto/Bear>
11399
.SH AUTHORS
114100
L\['a]szl\['o] Nagy.

0 commit comments

Comments
 (0)