2 # Inspired by/borrowed from the GIT source tree at Documentation/asciidoc.conf
4 # Usage: linkman:command[manpage-section]
6 # Note, {0} is the manpage section, while {target} is the command.
8 # Show man link as: <command>(<section>); if section is defined, else just show
12 (?su)[\\]?(?P<name>linkman):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
26 ifdef::backend-docbook[]
30 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
32 endif::backend-docbook[]
34 ifdef::backend-docbook[]
35 ifndef::docbook-xsl-172[]
36 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
37 # v1.72 breaks with this because it replaces dots not in roff requests.
39 <example><title>{title}</title>
44 endif::docbook-xsl-172[]
45 endif::backend-docbook[]
47 ifdef::doctype-manpage[]
48 ifdef::backend-docbook[]
50 template::[header-declarations]
53 <date>{pacman_date}</date>
56 <refentrytitle>{mantitle}</refentrytitle>
57 <manvolnum>{manvolnum}</manvolnum>
58 <refmiscinfo class="source">Pacman</refmiscinfo>
59 <refmiscinfo class="version">{pacman_version}</refmiscinfo>
60 <refmiscinfo class="manual">Pacman Manual</refmiscinfo>
63 <refname>{manname}</refname>
64 <refpurpose>{manpurpose}</refpurpose>
66 endif::backend-docbook[]
67 endif::doctype-manpage[]
69 ifdef::backend-xhtml11[]
71 <a href="{target}.{0}.html">{target}{0?({0})}</a>
72 endif::backend-xhtml11[]