From 61eb92b1ba30fd4da9be7e9dc9714125c1576cca Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 6 Aug 2005 13:11:18 +0000 Subject: preliminary mn page work git-svn-id: file:///home/lennart/svn/public/avahi/trunk@247 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- man/Makefile.am | 48 ++++++++++++++++++ man/avahi-browse.1.xml.in | 127 ++++++++++++++++++++++++++++++++++++++++++++++ man/xmltoman.css | 30 +++++++++++ man/xmltoman.dtd | 39 ++++++++++++++ man/xmltoman.xsl | 120 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 364 insertions(+) create mode 100644 man/Makefile.am create mode 100644 man/avahi-browse.1.xml.in 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 new file mode 100644 index 0000000..2d382ee --- /dev/null +++ b/man/Makefile.am @@ -0,0 +1,48 @@ +# $Id$ + +# This file is part of avahi. +# +# avahi is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation; either version 2 of the +# License, or (at your option) any later version. +# +# avahi 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 Lesser General Public +# License along with avahi; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +# USA. + +man_MANS = avahi-browse.1 + +noinst_DATA = \ + avahi-browse.1.xml + +EXTRA_DIST = \ + $(man_MANS) \ + avahi-browse.1.xml.in \ + xmltoman.css \ + xmltoman.xsl \ + xmltoman.dtd + +CLEANFILES = \ + $(noinst_DATA) + +avahi-browse.1.xml: avahi-browse.1.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) + +avahi-browse.1: avahi-browse.1.xml Makefile + xmltoman $< > $@ + +endif diff --git a/man/avahi-browse.1.xml.in b/man/avahi-browse.1.xml.in new file mode 100644 index 0000000..e9fb2c2 --- /dev/null +++ b/man/avahi-browse.1.xml.in @@ -0,0 +1,127 @@ + + + + + + + + + + + + ifplugstatus [options] [INTERFACE] + + + +

ifplugstatus is an utility which may be used to detect the link + status of a local Linux ethernet device, much in the same way + mii-diag, mii-tool and ethtool work. In fact it supports all + three different APIs these three tools use. In addition it supports + link checking with the IFF_RUNNING interface flag, which most modern + drivers (not only ethernet) support, and association status checking + with the wireless extension API for WLAN devices.

+ +

The APIs are tried in the following order:

+ +

First the newest API: SIOCETHTOOL (aka ethtool API)

+

Second the next older API: SIOCGMIIREG (aka mii-diag API)

+

Than the WLAN API: wireless extension (aka iwconfig API)

+

Followed by the cleanest API: IFF_RUNNING (aka ifconfig API)

+ +

The oldest API (SIOCPRIV aka mii-tool API) is not tested since it is obsolete.

+ +

ifplugstatus may be used in shell script since it returns the + current status as return value. It is especially useful to + detect the available APIs on the used network driver. (Option + -v)

+
+ + + +

You may specify an ethernet device on the command + line. Otherwise ifplugstatus will check all available network interfaces.

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

0 Success

+

1 Failure

+

2 Link beat detected (only available when an interface is specified)

+

3 Unplugged (same here)

+
+ +
+

ifplugd was written by Lennart Poettering + <@PACKAGE_BUGREPORT@>. ifplugd is available + at +

+
+ +
+

+ , , , +

+
+ +
+

This man page was written using by Oliver Kurth.

+
+ +
diff --git a/man/xmltoman.css b/man/xmltoman.css new file mode 100644 index 0000000..caab604 --- /dev/null +++ b/man/xmltoman.css @@ -0,0 +1,30 @@ +/* $Id: xmltoman.css 52 2003-10-17 00:09:23Z lennart $ */ + +/*** + This file is part of ifplugd. + + ifplugd 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. + + ifplugd 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 ifplugd; 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..42809db --- /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..2048708 --- /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