Back to home page

OSCL-LXR

 
 

    


0001 ## linkperf: macro
0002 #
0003 # Usage: linkperf:command[manpage-section]
0004 #
0005 # Note, {0} is the manpage section, while {target} is the command.
0006 #
0007 # Show PERF link as: <command>(<section>); if section is defined, else just show
0008 # the command.
0009 
0010 [macros]
0011 (?su)[\\]?(?P<name>linkperf):(?P<target>\S*?)\[(?P<attrlist>.*?)\]=
0012 
0013 [attributes]
0014 asterisk=&#42;
0015 plus=&#43;
0016 caret=&#94;
0017 startsb=&#91;
0018 endsb=&#93;
0019 tilde=&#126;
0020 
0021 ifdef::backend-docbook[]
0022 [linkperf-inlinemacro]
0023 {0%{target}}
0024 {0#<citerefentry>}
0025 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
0026 {0#</citerefentry>}
0027 endif::backend-docbook[]
0028 
0029 ifdef::backend-docbook[]
0030 ifndef::perf-asciidoc-no-roff[]
0031 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
0032 # v1.72 breaks with this because it replaces dots not in roff requests.
0033 [listingblock]
0034 <example><title>{title}</title>
0035 <literallayout>
0036 ifdef::doctype-manpage[]
0037 &#10;.ft C&#10;
0038 endif::doctype-manpage[]
0039 |
0040 ifdef::doctype-manpage[]
0041 &#10;.ft&#10;
0042 endif::doctype-manpage[]
0043 </literallayout>
0044 {title#}</example>
0045 endif::perf-asciidoc-no-roff[]
0046 
0047 ifdef::perf-asciidoc-no-roff[]
0048 ifdef::doctype-manpage[]
0049 # The following two small workarounds insert a simple paragraph after screen
0050 [listingblock]
0051 <example><title>{title}</title>
0052 <literallayout>
0053 |
0054 </literallayout><simpara></simpara>
0055 {title#}</example>
0056 
0057 [verseblock]
0058 <formalpara{id? id="{id}"}><title>{title}</title><para>
0059 {title%}<literallayout{id? id="{id}"}>
0060 {title#}<literallayout>
0061 |
0062 </literallayout>
0063 {title#}</para></formalpara>
0064 {title%}<simpara></simpara>
0065 endif::doctype-manpage[]
0066 endif::perf-asciidoc-no-roff[]
0067 endif::backend-docbook[]
0068 
0069 ifdef::doctype-manpage[]
0070 ifdef::backend-docbook[]
0071 [header]
0072 template::[header-declarations]
0073 <refentry>
0074 ifdef::perf_date[]
0075 <refentryinfo><date>{perf_date}</date></refentryinfo>
0076 endif::perf_date[]
0077 <refmeta>
0078 <refentrytitle>{mantitle}</refentrytitle>
0079 <manvolnum>{manvolnum}</manvolnum>
0080 <refmiscinfo class="source">perf</refmiscinfo>
0081 <refmiscinfo class="version">{perf_version}</refmiscinfo>
0082 <refmiscinfo class="manual">perf Manual</refmiscinfo>
0083 </refmeta>
0084 <refnamediv>
0085   <refname>{manname}</refname>
0086   <refpurpose>{manpurpose}</refpurpose>
0087 </refnamediv>
0088 endif::backend-docbook[]
0089 endif::doctype-manpage[]
0090 
0091 ifdef::backend-xhtml11[]
0092 [linkperf-inlinemacro]
0093 <a href="{target}.html">{target}{0?({0})}</a>
0094 endif::backend-xhtml11[]