From 95c6823f9d0eb7110d8327bccfa52f57cc391bc4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 23 Jan 2004 23:20:25 +0000 Subject: compatibility with 2.6 documentation update git-svn-id: file:///home/lennart/svn/public/ifmetric/trunk@16 b1ab5a0b-19c4-0310-9d9a-ef184d715f50 --- man/Makefile.am | 15 +++++-- man/ifmetric.8.xml.in | 5 ++- man/xmltoman.css | 30 +++++++++++++ man/xmltoman.dtd | 39 ++++++++++++++++ man/xmltoman.xsl | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 203 insertions(+), 6 deletions(-) create mode 100644 man/xmltoman.css create mode 100644 man/xmltoman.dtd create mode 100644 man/xmltoman.xsl (limited to 'man') diff --git a/man/Makefile.am b/man/Makefile.am index 8523d68..11c8dd1 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -18,13 +18,20 @@ man_MANS = ifmetric.8 -EXTRA_DIST = $(man_MANS) ifmetric.8.xml.in +noinst_DATA = ifmetric.8.xml + +EXTRA_DIST = $(man_MANS) ifmetric.8.xml.in xmltoman.css xmltoman.xsl xmltoman.dtd + +CLEANFILES = ifmetric.8.xml + +ifmetric.8.xml: ifmetric.8.xml.in Makefile + sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' $< > $@ if USE_XMLTOMAN -CLEANFILES = $(man_MANS) +CLEANFILES += $(man_MANS) -ifmetric.8: ifmetric.8.xml.in Makefile - sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' $< | xmltoman - > $@ +ifmetric.8: ifmetric.8.xml Makefile + xmltoman $< > $@ endif diff --git a/man/ifmetric.8.xml.in b/man/ifmetric.8.xml.in index f0aa960..ca539cf 100644 --- a/man/ifmetric.8.xml.in +++ b/man/ifmetric.8.xml.in @@ -1,5 +1,6 @@ - - + + + diff --git a/man/xmltoman.css b/man/xmltoman.css new file mode 100644 index 0000000..ea0760c --- /dev/null +++ b/man/xmltoman.css @@ -0,0 +1,30 @@ +/* $Id$ */ + +/*** + This file is part of ifmetric. + + ifmetric is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your + option) any later version. + + ifmetric is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with ifmetric; if not, write to the Free Software Foundation, + Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. +***/ + +body { color: black; background-color: white; margin: 0.5cm; } +a:link, a:visited { color: #900000; } +h1 { text-transform:uppercase; font-size: 18pt; color: #00009F; } +p { margin-left:1cm; margin-right:1cm; } +.cmd { font-family:monospace; } +.file { font-family:monospace; } +.arg { text-transform:uppercase; font-family:monospace; font-style: italic; } +.opt { font-family:monospace; font-weight: bold; } +.manref { font-family:monospace; } +.option .optdesc { margin-left:2cm; } diff --git a/man/xmltoman.dtd b/man/xmltoman.dtd new file mode 100644 index 0000000..0b502c2 --- /dev/null +++ b/man/xmltoman.dtd @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/man/xmltoman.xsl b/man/xmltoman.xsl new file mode 100644 index 0000000..c387877 --- /dev/null +++ b/man/xmltoman.xsl @@ -0,0 +1,120 @@ + + + + + + + + <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + + + + + <xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>) + + + + +

Name

+

+ + - + +

+ + + +
+ + +

+ +

+
+ + +

+ +

+
+ + + + + + + + + + + + + + +
+ +
+
+ + +

Synopsis

+ +
+ + +

Synopsis

+ +
+ + +

Description

+ +
+ + +

Options

+ +
+ + +

+ +
+ + +
+
+ + + + + () + + + () + + + + + + + + +
-- cgit