diff options
author | Ingo Molnar | 2009-05-30 12:38:51 +0200 |
---|---|---|
committer | Ingo Molnar | 2009-05-30 13:52:44 +0200 |
commit | c1c2365acf8c044f749c0fe1ea236497e8d1718e (patch) | |
tree | 79f4f096429920ba67842f8adf0e57a35f5c14a0 /Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl | |
parent | perf_counter tools: Fix 'make install' (diff) | |
download | kernel-qcow2-linux-c1c2365acf8c044f749c0fe1ea236497e8d1718e.tar.gz kernel-qcow2-linux-c1c2365acf8c044f749c0fe1ea236497e8d1718e.tar.xz kernel-qcow2-linux-c1c2365acf8c044f749c0fe1ea236497e8d1718e.zip |
perf_counter tools: Generate per command manpages (and pdf/html, etc.)
Import Git's nice .txt => {man/html/pdf} generation machinery.
Fix various errors in the Documentation/perf*.txt description as well.
Also fix a bug in builtin-help: we'd map 'perf help top' to 'perftop'
if only the 'perf' binary is in the default PATH - confusing the manpage
logic. I dont fully understand why Git did it this way - but i suppose
it's a migration artifact from their migration from standalone git-xyz
commands to 'git xyz' commands. The perf tools were always using the
modern form so it's not an issue there.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl')
-rw-r--r-- | Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl b/Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl new file mode 100644 index 000000000000..a63c7632a87d --- /dev/null +++ b/Documentation/perf_counter/Documentation/manpage-suppress-sp.xsl @@ -0,0 +1,21 @@ +<!-- manpage-suppress-sp.xsl: + special settings for manpages rendered from asciidoc+docbook + handles erroneous, inline .sp in manpage output of some + versions of docbook-xsl --> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + version="1.0"> + +<!-- attempt to work around spurious .sp at the tail of the line + that some versions of docbook stylesheets seem to add --> +<xsl:template match="simpara"> + <xsl:variable name="content"> + <xsl:apply-templates/> + </xsl:variable> + <xsl:value-of select="normalize-space($content)"/> + <xsl:if test="not(ancestor::authorblurb) and + not(ancestor::personblurb)"> + <xsl:text> </xsl:text> + </xsl:if> +</xsl:template> + +</xsl:stylesheet> |