5 # Inspired by linkgit macro:
6 # <https://github.com/git/git/blob/master/Documentation/asciidoc.conf>
8 # Usage: linklttng:command(manpage-section)
9 (?su)[\\]?(?P<name>linklttng):(?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-]*)=
41 # linklttng macro expansions
42 ifdef::backend-docbook[]
43 [linklttng-inlinemacro]
46 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
48 endif::backend-docbook[]
50 # linkgenoptions macro expansions
51 ifdef::backend-docbook[]
52 [linkgenoptions-inlinemacro]
54 endif::backend-docbook[]
56 # option macro expansions
57 ifdef::backend-docbook[]
59 <literal>{opt}</literal>
60 endif::backend-docbook[]
62 # no link option macro expansions
63 ifdef::backend-docbook[]
64 [nloption-inlinemacro]
65 <literal>{opt}</literal>
66 endif::backend-docbook[]
68 # lttng(1) general option macro expansions
69 ifdef::backend-docbook[]
70 [genoption-inlinemacro]
71 <literal>{opt}</literal>
72 endif::backend-docbook[]
74 # not macro expansions
75 ifdef::backend-docbook[]
78 endif::backend-docbook[]
80 # escwc macro expansions
81 ifdef::backend-docbook[]
83 <literal>\e*</literal>
84 endif::backend-docbook[]
86 # configure XML man page header
87 ifdef::doctype-manpage[]
88 ifdef::backend-docbook[]
90 template::[header-declarations]
93 <refentrytitle>{mantitle}</refentrytitle>
94 <manvolnum>{manvolnum}</manvolnum>
95 <refmiscinfo class="source">LTTng</refmiscinfo>
96 <refmiscinfo class="version">{lttng_version}</refmiscinfo>
97 <refmiscinfo class="manual">LTTng Manual</refmiscinfo>
100 <refname>{manname}</refname>
101 <refpurpose>{manpurpose}</refpurpose>
103 endif::backend-docbook[]
104 endif::doctype-manpage[]