Skip to content
This repository
Browse code

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

  • Loading branch information...
commit 0d9b87414e83387d5a065523e81923173b374bf6 1 parent 6ae59e6
Neil Williams codehelp authored
1  .gitignore
@@ -43,6 +43,7 @@ debian/pybit-client/
43 43 debian/pybit-common/
44 44 debian/pybit-svn/
45 45 debian/pybit-web/
  46 +debian/pybit-watcher/
46 47 debian/*.1
47 48 debian/*.debhelper
48 49
2  debian/control
@@ -69,6 +69,6 @@ Package: pybit-watcher
69 69 Architecture: all
70 70 Depends: python-pyinotify, python-daemon, pybit-common, reprepro,
71 71 ${python:Depends}, ${misc:Depends}
72   -Description: watches incomming directories for reprepro
  72 +Description: watches incoming directories for reprepro
73 73 This package provides a watcher which runs as a daemon and monitors a
74 74 directory for changes files then runs the appropriate reprepro rule.
58 debian/pybit-watcher.1.xml
... ... @@ -0,0 +1,58 @@
  1 +<?xml version="1.0" encoding="ISO-8859-1"?>
  2 +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  3 + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
  4 +<refentry id='pybit-watcher'>
  5 +<refmeta>
  6 +<refentrytitle>pybit-watcher</refentrytitle>
  7 +<manvolnum>1</manvolnum>
  8 +<refmiscinfo class='source'>November 2012</refmiscinfo>
  9 +<refmiscinfo class='manual'>pybit-watcher</refmiscinfo>
  10 +</refmeta>
  11 +<refnamediv id='name'>
  12 +<refname>pybit-watcher</refname>
  13 +<refpurpose>watches incoming directories for reprepro</refpurpose>
  14 +</refnamediv>
  15 +<!-- body begins here -->
  16 +<refsynopsisdiv id='synopsis'>
  17 +<cmdsynopsis>
  18 + <command>pybit-watcher</command>
  19 + <arg choice='opt'><replaceable>options</replaceable></arg>
  20 +</cmdsynopsis>
  21 +</refsynopsisdiv>
  22 +
  23 +
  24 +<refsect1 id='options'><title>OPTIONS</title>
  25 +<variablelist remap='TP'>
  26 + <varlistentry>
  27 + <term><option>-h</option>, <option>--help</option></term>
  28 + <listitem>
  29 +<para>show this help message and exit</para>
  30 + </listitem>
  31 + </varlistentry>
  32 + <varlistentry>
  33 + <term><option>--conf_file</option>=<emphasis remap='I'>PYBIT_WATCHER_CONF_FILE</emphasis></term>
  34 + <listitem>
  35 +<para>Config file to read settings from, defaults to
  36 +watcher.conf which will be read from configs/watcher
  37 +and /etc/pybit/watcher in turn.</para>
  38 + </listitem>
  39 + </varlistentry>
  40 + <varlistentry>
  41 + <term><option>-v</option></term>
  42 + <listitem>
  43 +<para>Turn on verbose messages.</para>
  44 + </listitem>
  45 + </varlistentry>
  46 + <varlistentry>
  47 + <term><option>-d</option></term>
  48 + <listitem>
  49 +<para>Daemonise with output going to /var/log/pybit-watcher</para>
  50 + </listitem>
  51 + </varlistentry>
  52 +</variablelist>
  53 +
  54 +<para>pybit-watcher: error: no such option: <option>--version</option></para>
  55 +</refsect1>
  56 +
  57 +</refentry>
  58 +
3  debian/pybit-watcher.install
... ... @@ -1,2 +1,3 @@
1 1 configs/watcher/watcher.conf ./etc/pybit/watcher/
2   -pybit-watcher ./usr/bin/
  2 +pybit-watcher ./usr/bin/
  3 +debian/pybit-watcher.1 ./usr/share/man/man1/
2  debian/rules
@@ -39,7 +39,9 @@ build-setup: setup.py
39 39 dh_testdir
40 40 python setup.py build
41 41 xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl debian/pybit-client.1.xml
  42 + xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl debian/pybit-watcher.1.xml
42 43 mv pybit-client.1 debian/
  44 + mv pybit-watcher.1 debian/
43 45
44 46 clean:
45 47 dh_testdir

0 comments on commit 0d9b874

Please sign in to comment.
Something went wrong with that request. Please try again.