1## gitlink: macro 2# 3# Usage: gitlink:command[manpage-section] 4# 5# Note, {0} is the manpage section, while {target} is the command. 6# 7# Show GIT link as: <command>(<section>); if section is defined, else just show 8# the command. 9 10ifdef::backend-docbook[] 11[gitlink-inlinemacro] 12{0%{target}} 13{0#<citerefentry>} 14{0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>} 15{0#</citerefentry>} 16endif::backend-docbook[] 17 18ifdef::backend-xhtml11[] 19[gitlink-inlinemacro] 20<a href="{target}.html">{target}{0?({0})}</a> 21endif::backend-xhtml11[]