From 082d34b96a550d6d8591e78a2730a03c478bbeb8 Mon Sep 17 00:00:00 2001 From: Scott Kitterman <scott@kitterman.com> Date: Fri, 11 Jul 2014 18:57:41 -0400 Subject: [PATCH] Handle pregeneration of README.PyDist.html --- debian/control | 2 +- debian/rules | 6 ++++-- pydist/Makefile | 4 ---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/debian/control b/debian/control index 6ffd2ef..24bd756 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: python Priority: optional Maintainer: Matthias Klose <doko@debian.org> Uploaders: Scott Kitterman <scott@kitterman.com>, Piotr Ożarowski <piotr@debian.org>, Barry Warsaw <barry@debian.org> -Build-Depends: debhelper (>= 8~), debiandoc-sgml +Build-Depends: debhelper (>= 8~), python-all, debiandoc-sgml Standards-Version: 3.9.5 Homepage: http://www.python.org/ Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian diff --git a/debian/rules b/debian/rules index 496b7f5..95077cf 100755 --- a/debian/rules +++ b/debian/rules @@ -53,7 +53,7 @@ stamp-doc-policy: debiandoc2html -l en.UTF-8 debian/python-policy.sgml rm -rf debian/python-policy.html mv -f python-policy.html debian/ - make -C pydist README.PyDist.html + make -C pydist touch stamp-doc-policy stamp-doc: stamp-doc-policy @@ -114,6 +114,8 @@ MANPAGES ?= dh_python2.1 pycompile.1 pyclean.1 # Manually run this rule if there is a need to update the dh_python2 man pages make-man: $(MANPAGES) + cd pydist && \ + rst2html README.PyDist > README.PyDist.html clean: control-file dh_testdir @@ -173,7 +175,7 @@ stamp-dh_python: dh_installdirs -make check_versions DESTDIR=debian/python PREFIX=/usr make install-dev - DESTDIR=debian/python-minimal PREFIX=/usr make install-runtime manpages + DESTDIR=debian/python-minimal PREFIX=/usr make install-runtime # disabled by default, run manually if you want to update it # (requires apt-file and network connection) #make -C pydist dist_fallback diff --git a/pydist/Makefile b/pydist/Makefile index b24f306..78e8796 100644 --- a/pydist/Makefile +++ b/pydist/Makefile @@ -3,12 +3,8 @@ clean: rm -rf cache #rm -f dist_fallback - rm -f README.PyDist.html dist_fallback: sources.list python ./generate_fallback_list.py --skip-sensible-names -README.PyDist.html: README.PyDist - rst2html $< $@ - .PHONY: clean -- GitLab