Browse files

Improve #3 by adding a bare pybit-watcher manpage.

  • Loading branch information...
1 parent 6ae59e6 commit 0d9b87414e83387d5a065523e81923173b374bf6 @codehelp codehelp committed Nov 13, 2012
Showing with 64 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 debian/control
  3. +58 −0 debian/pybit-watcher.1.xml
  4. +2 −1 debian/pybit-watcher.install
  5. +2 −0 debian/rules
View
1 .gitignore
@@ -43,6 +43,7 @@ debian/pybit-client/
debian/pybit-common/
debian/pybit-svn/
debian/pybit-web/
+debian/pybit-watcher/
debian/*.1
debian/*.debhelper
View
2 debian/control
@@ -69,6 +69,6 @@ Package: pybit-watcher
Architecture: all
Depends: python-pyinotify, python-daemon, pybit-common, reprepro,
${python:Depends}, ${misc:Depends}
-Description: watches incomming directories for reprepro
+Description: watches incoming directories for reprepro
This package provides a watcher which runs as a daemon and monitors a
directory for changes files then runs the appropriate reprepro rule.
View
58 debian/pybit-watcher.1.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<refentry id='pybit-watcher'>
+<refmeta>
+<refentrytitle>pybit-watcher</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class='source'>November 2012</refmiscinfo>
+<refmiscinfo class='manual'>pybit-watcher</refmiscinfo>
+</refmeta>
+<refnamediv id='name'>
+<refname>pybit-watcher</refname>
+<refpurpose>watches incoming directories for reprepro</refpurpose>
+</refnamediv>
+<!-- body begins here -->
+<refsynopsisdiv id='synopsis'>
+<cmdsynopsis>
+ <command>pybit-watcher</command>
+ <arg choice='opt'><replaceable>options</replaceable></arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+
+<refsect1 id='options'><title>OPTIONS</title>
+<variablelist remap='TP'>
+ <varlistentry>
+ <term><option>-h</option>, <option>--help</option></term>
+ <listitem>
+<para>show this help message and exit</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>--conf_file</option>=<emphasis remap='I'>PYBIT_WATCHER_CONF_FILE</emphasis></term>
+ <listitem>
+<para>Config file to read settings from, defaults to
+watcher.conf which will be read from configs/watcher
+and /etc/pybit/watcher in turn.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-v</option></term>
+ <listitem>
+<para>Turn on verbose messages.</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>-d</option></term>
+ <listitem>
+<para>Daemonise with output going to /var/log/pybit-watcher</para>
+ </listitem>
+ </varlistentry>
+</variablelist>
+
+<para>pybit-watcher: error: no such option: <option>--version</option></para>
+</refsect1>
+
+</refentry>
+
View
3 debian/pybit-watcher.install
@@ -1,2 +1,3 @@
configs/watcher/watcher.conf ./etc/pybit/watcher/
-pybit-watcher ./usr/bin/
+pybit-watcher ./usr/bin/
+debian/pybit-watcher.1 ./usr/share/man/man1/
View
2 debian/rules
@@ -39,7 +39,9 @@ build-setup: setup.py
dh_testdir
python setup.py build
xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl debian/pybit-client.1.xml
+ xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl debian/pybit-watcher.1.xml
mv pybit-client.1 debian/
+ mv pybit-watcher.1 debian/
clean:
dh_testdir

0 comments on commit 0d9b874

Please sign in to comment.