From 22daaf6b7fc3e12a0605a7bb31aba148ed5ba936 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 13 Sep 2003 00:43:14 +0000 Subject: XSL man pages git-svn-id: file:///home/lennart/svn/public/ifplugd/trunk@41 2bf48fe7-cfc1-0310-909f-d9042e1e0fef --- Makefile.am | 6 +-- doc/NEWS | 2 +- doc/README.html.in | 2 + man/Makefile.am | 32 +++++++++---- man/ifplugd.8.xml.in | 5 +- man/ifplugd.conf.5.xml.in | 5 +- man/ifstatus.8.xml.in | 7 +-- man/man.css | 30 ++++++++++++ man/man.xsl | 120 ++++++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 189 insertions(+), 20 deletions(-) create mode 100644 man/man.css create mode 100644 man/man.xsl diff --git a/Makefile.am b/Makefile.am index 668868c..13d8694 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,15 +27,15 @@ README: $(MAKE) -C doc README ln -s doc/README README -homepage: +homepage: all dist test -d $$HOME/homepage/lennart mkdir -p $$HOME/homepage/lennart/projects/ifplugd cp *.tar.gz $$HOME/homepage/lennart/projects/ifplugd - cp doc/README.html doc/style.css doc/NEWS $$HOME/homepage/lennart/projects/ifplugd + cp man/ifplugd.8.xml man/ifstatus.8.xml man/ifplugd.conf.5.xml man/man.css man/man.xsl doc/README.html doc/style.css doc/NEWS $$HOME/homepage/lennart/projects/ifplugd cp $$HOME/homepage/lennart/projects/ifplugd/README.html $$HOME/homepage/lennart/projects/ifplugd/index.html distcleancheck: - @: + @: .PHONY: homepage distcleancheck diff --git a/doc/NEWS b/doc/NEWS index 5c6192e..80ff2d2 100644 --- a/doc/NEWS +++ b/doc/NEWS @@ -1,4 +1,4 @@ -0.17 :: 13 Sep 2003 :: SVN +0.17 :: 13 Sep 2003 :: SVN 41 Init script update compativility fix for gcc 2.95 diff --git a/doc/README.html.in b/doc/README.html.in index f9f2784..90255b6 100644 --- a/doc/README.html.in +++ b/doc/README.html.in @@ -104,6 +104,8 @@ network is configured.

Documentation

+

Have a look on the man pages ifplugd(8), ifstatus(8), ifplugd.conf(5). (A XSLT capable browser is required)

+

Configuration

Edit /etc/ifplugd/ifplugd.conf for configuration diff --git a/man/Makefile.am b/man/Makefile.am index 4674296..742e3bf 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -18,19 +18,33 @@ man_MANS = ifplugd.8 ifplugd.conf.5 ifstatus.8 -EXTRA_DIST = $(man_MANS) ifplugd.8.xml.in ifplugd.conf.5.xml.in ifstatus.8.xml.in +noinst_DATA = ifplugd.8.xml ifplugd.conf.5.xml ifstatus.8.xml -if USE_XMLTOMAN +EXTRA_DIST = $(man_MANS) ifplugd.8.xml.in ifplugd.conf.5.xml.in ifstatus.8.xml.in man.css man.xsl -CLEANFILES = $(man_MANS) +CLEANFILES = ifplugd.8.xml ifplugd.conf.5.xml ifstatus.8.xml -ifplugd.8: ifplugd.8.xml.in Makefile - sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< | xmltoman - > $@ +ifplugd.8.xml: ifplugd.8.xml.in Makefile + sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ -ifplugd.conf.5: ifplugd.conf.5.xml.in Makefile - sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< | xmltoman - > $@ +ifplugd.conf.5.xml: ifplugd.conf.5.xml.in Makefile + sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ -ifstatus.8: ifstatus.8.xml.in Makefile - sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< | xmltoman - > $@ +ifstatus.8.xml: ifstatus.8.xml.in Makefile + sed -e 's,@sysconfdir\@,$(sysconfdir),g' -e 's,@sbindir\@,$(sbindir),g' -e 's,@PACKAGE_BUGREPORT\@,$(PACKAGE_BUGREPORT),g' -e 's,@PACKAGE_URL\@,$(PACKAGE_URL),g' $< > $@ +if USE_XMLTOMAN + +CLEANFILES += $(man_MANS) + +ifplugd.8: ifplugd.8.xml Makefile + xmltoman $< > $@ + +ifplugd.conf.5: ifplugd.conf.5.xml Makefile + xmltoman $< > $@ + +ifstatus.8: ifstatus.8.xml Makefile + xmltoman $< > $@ + endif + diff --git a/man/ifplugd.8.xml.in b/man/ifplugd.8.xml.in index ed5dddd..d259608 100644 --- a/man/ifplugd.8.xml.in +++ b/man/ifplugd.8.xml.in @@ -1,7 +1,8 @@ - + + - + + + + + + + <!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