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>.*?)\]=
22 ifdef::backend-docbook[]
26 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
28 endif::backend-docbook[]
30 ifdef::backend-docbook[]
31 ifndef::docbook-xsl-172[]
32 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
33 # v1.72 breaks with this because it replaces dots not in roff requests.
35 <example><title>{title}</title>
40 endif::docbook-xsl-172[]
41 endif::backend-docbook[]
43 ifdef::doctype-manpage[]
44 ifdef::backend-docbook[]
46 template::[header-declarations]
49 <date>{pacman_date}</date>
52 <refentrytitle>{mantitle}</refentrytitle>
53 <manvolnum>{manvolnum}</manvolnum>
54 <refmiscinfo class="source">Pacman</refmiscinfo>
55 <refmiscinfo class="version">{pacman_version}</refmiscinfo>
56 <refmiscinfo class="manual">Pacman Manual</refmiscinfo>
59 <refname>{manname}</refname>
60 <refpurpose>{manpurpose}</refpurpose>
62 endif::backend-docbook[]
63 endif::doctype-manpage[]
65 ifdef::backend-xhtml11[]
67 <a href="{target}.{0}.html">{target}{0?({0})}</a>
68 endif::backend-xhtml11[]