summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-03-12 14:33:55 +0100
committerJulian Andres Klode <jak@debian.org>2010-03-12 14:33:55 +0100
commit5fc47b7e1c9ff27bdc850f9d2e4681ed8caa62ea (patch)
tree65dfd728eb3776223357bf6609e7145eb3cba44f
parent092deeee998dfa2695c586c8105120bd586e8fd1 (diff)
downloadpython-apt-5fc47b7e1c9ff27bdc850f9d2e4681ed8caa62ea.tar.gz
Build documentation only when needed (when building python-apt-doc).
-rw-r--r--debian/changelog1
-rwxr-xr-xdebian/rules6
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index f33f4ed5..462f60d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-apt (0.7.94.1) UNRELEASED; urgency=low
* Pass --link-doc=python-apt to dh_installdocs.
* Install examples to python-apt-doc instead of python-apt.
* tests/test_all.py: Write information header to stderr, not stdout.
+ * Build documentation only when needed (when building python-apt-doc).
-- Julian Andres Klode <jak@debian.org> Thu, 11 Mar 2010 19:33:26 +0100
diff --git a/debian/rules b/debian/rules
index a1ef5441..a65c5cfd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,11 +9,13 @@ export CFLAGS=-Wno-write-strings -DCOMPAT_0_7
override_dh_auto_build:
dh_auto_build
- python setup.py build_sphinx
override_dh_installdocs:
+ set -e; if [ -z $(filter -a,$(DH_INTERNAL_OPTIONS)) ]; then \
+ python setup.py build_sphinx; \
+ dh_installdirs -ppython-apt-doc usr/share/doc/python-apt; \
+ fi
dh_installdirs -ppython-apt-dev usr/share/doc/python-apt
- dh_installdirs -ppython-apt-doc usr/share/doc/python-apt
dh_installdocs --link-doc=python-apt
override_dh_strip: