diff options
-rw-r--r-- | debian/clean | 1 | ||||
-rw-r--r-- | debian/manpages | 1 | ||||
-rwxr-xr-x | debian/rules | 10 |
3 files changed, 6 insertions, 6 deletions
diff --git a/debian/clean b/debian/clean new file mode 100644 index 00000000..322f3a67 --- /dev/null +++ b/debian/clean @@ -0,0 +1 @@ +docs/man/leap-client.1 diff --git a/debian/manpages b/debian/manpages new file mode 100644 index 00000000..322f3a67 --- /dev/null +++ b/debian/manpages @@ -0,0 +1 @@ +docs/man/leap-client.1 diff --git a/debian/rules b/debian/rules index 9733f76d..2e4af44b 100755 --- a/debian/rules +++ b/debian/rules @@ -14,6 +14,10 @@ PYTHON2=$(shell pyversions -vr) %: dh $@ --with python2,sphinxdoc --buildsystem=python_distutils +override_dh_prep: + rst2man docs/man/leap-client.1.rst docs/man/leap-client.1 + dh_prep + ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) # run tests! @@ -25,12 +29,6 @@ test-python%: override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) endif -override_dh_preps: - # XXX trying to generate the manpage from rst, - # but not the right override... :( - rst2html docs/man/leap-client.1.rst docs/man/leap-client.1 - dh_preps - #dh_auto_build should be enough to build the python2 version build-python%: |