5 # Inspired by linkgit macro:
6 # <https://github.com/git/git/blob/master/Documentation/asciidoc.conf>
8 # Usage: man:command(manpage-section)
9 (?su)[\\]?(?P<name>man):(?P<target>\S*?)\((?P<attrlist>.*?)\)=
11 # linkgenoptions macro
13 # Usage: linkgenoptions:(text)
14 (?su)[\\]?(?P<name>linkgenoptions):\((?P<text>.*?)\)=
16 # no link option macro
18 # Usage: nloption:--option-name
19 (?su)[\\]?(?P<name>nloption):(?P<opt>--?[a-zA-Z0-9-]*)=
21 # lttng(1) general option macro
23 # Usage: genoption:--option-name
24 (?su)[\\]?(?P<name>genoption):(?P<opt>--?[a-zA-Z0-9-]*)=
28 # Usage: option:--option-name
29 (?su)[\\]?(?P<name>option):(?P<opt>--?[a-zA-Z0-9-]*)=
51 # man macro expansions
52 ifdef::doctype-manpage[]
53 ifdef::backend-docbook[]
57 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
59 endif::backend-docbook[]
60 endif::doctype-manpage[]
62 # linkgenoptions macro expansions
63 ifdef::doctype-manpage[]
64 ifdef::backend-docbook[]
65 [linkgenoptions-inlinemacro]
67 endif::backend-docbook[]
68 endif::doctype-manpage[]
70 # option macro expansions
71 ifdef::doctype-manpage[]
72 ifdef::backend-docbook[]
74 <literal>{opt}</literal>
75 endif::backend-docbook[]
76 endif::doctype-manpage[]
78 # no link option macro expansions
79 ifdef::doctype-manpage[]
80 ifdef::backend-docbook[]
81 [nloption-inlinemacro]
82 <literal>{opt}</literal>
83 endif::backend-docbook[]
84 endif::doctype-manpage[]
86 # lttng(1) general option macro expansions
87 ifdef::doctype-manpage[]
88 ifdef::backend-docbook[]
89 [genoption-inlinemacro]
90 <literal>{opt}</literal>
91 endif::backend-docbook[]
92 endif::doctype-manpage[]
94 # not macro expansions
95 ifdef::doctype-manpage[]
96 ifdef::backend-docbook[]
99 endif::backend-docbook[]
100 endif::doctype-manpage[]
102 # escwc macro expansions
103 ifdef::doctype-manpage[]
104 ifdef::backend-docbook[]
106 <literal>\e*</literal>
107 endif::backend-docbook[]
108 endif::doctype-manpage[]
110 # esccomma macro expansions
111 ifdef::doctype-manpage[]
112 ifdef::backend-docbook[]
113 [esccomma-inlinemacro]
114 <literal>\e,</literal>
115 endif::backend-docbook[]
116 endif::doctype-manpage[]
118 # escbs macro expansions
119 ifdef::doctype-manpage[]
120 ifdef::backend-docbook[]
122 <literal>\e</literal>
123 endif::backend-docbook[]
124 endif::doctype-manpage[]
126 # configure XML man page header
127 ifdef::doctype-manpage[]
128 ifdef::backend-docbook[]
130 template::[header-declarations]
133 <date>{revdate}</date>
136 <refentrytitle>{mantitle}</refentrytitle>
137 <manvolnum>{manvolnum}</manvolnum>
138 <refmiscinfo class="source">LTTng</refmiscinfo>
139 <refmiscinfo class="version">{lttng_version}</refmiscinfo>
140 <refmiscinfo class="manual">LTTng Manual</refmiscinfo>
143 <refname>{manname}</refname>
144 <refpurpose>{manpurpose}</refpurpose>
146 endif::backend-docbook[]
147 endif::doctype-manpage[]