[Python-modules-commits] [autopep8] 05/05: Add a manpage
Sylvestre Ledru
sylvestre at moszumanska.debian.org
Mon Jun 19 20:48:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch master
in repository autopep8.
commit 8dad9ea6448ea3eba31f4597d1821e2535a4be42
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Mon Jun 19 22:47:58 2017 +0200
Add a manpage
---
debian/changelog | 1 +
debian/control | 2 +-
debian/python-autopep8.manpages | 2 ++
debian/rules | 7 +++++++
4 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index eec108e..da3022a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ autopep8 (1.3.2-1~exp1) experimental; urgency=medium
* Update the min dep of pycodestyle
* Vcs-Git & Vcs-Browser
* Standards-Version updated 4.0.0
+ * Add a manpage
-- Sylvestre Ledru <sylvestre at debian.org> Mon, 19 Jun 2017 22:33:35 +0200
diff --git a/debian/control b/debian/control
index 1da23d6..104c137 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.o
Section: python
Priority: optional
Build-Depends: python-setuptools (>= 0.6b3), python-all (>= 2.6.6-3),
- debhelper (>= 10), pycodestyle (>= 2.3.1)
+ debhelper (>= 10), pycodestyle (>= 2.3.1), dh-python, help2man
Standards-Version: 4.0.0
Homepage: https://pypi.python.org/pypi/autopep8/
Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/autopep8.git
diff --git a/debian/python-autopep8.manpages b/debian/python-autopep8.manpages
new file mode 100644
index 0000000..6489f45
--- /dev/null
+++ b/debian/python-autopep8.manpages
@@ -0,0 +1,2 @@
+debian/autopep8.1
+
diff --git a/debian/rules b/debian/rules
index bcebae9..741f727 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,13 @@
#!/usr/bin/make -f
+VERSION = $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\1,p")
%:
dh $@ --with python2 --buildsystem=python_distutils
+override_dh_installdocs:
+ help2man --version-string=$(VERSION) debian/python-autopep8/usr/bin/autopep8 > debian/autopep8.1
+ dh_installdocs
+override_dh_clean:
+ rm debian/*.1
+ dh_clean
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/autopep8.git
More information about the Python-modules-commits
mailing list