[debian] include compiled documentation instead of source in cubicweb-documentation debian pkg stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 15 Oct 2010 16:20:27 +0200
branchstable
changeset 6512 1f8b902f3143
parent 6511 2bf506737008
child 6513 75f9f016adda
child 6514 f328ec853e18
child 6520 07a0f93f499a
[debian] include compiled documentation instead of source in cubicweb-documentation debian pkg
debian/control
debian/cubicweb-documentation.install.in
debian/rules
--- a/debian/control	Fri Oct 15 16:12:47 2010 +0200
+++ b/debian/control	Fri Oct 15 16:20:27 2010 +0200
@@ -7,7 +7,7 @@
            Adrien Di Mascio <Adrien.DiMascio@logilab.fr>,
            Aurélien Campéas <aurelien.campeas@logilab.fr>,
            Nicolas Chauvat <nicolas.chauvat@logilab.fr>
-Build-Depends: debhelper (>= 5), python-dev (>=2.5), python-central (>= 0.5)
+Build-Depends: debhelper (>= 5), python-dev (>=2.5), python-central (>= 0.5), python-sphinx, logilab-doctools
 Standards-Version: 3.8.0
 Homepage: http://www.cubicweb.org
 XS-Python-Version: >= 2.5, << 2.7
--- a/debian/cubicweb-documentation.install.in	Fri Oct 15 16:12:47 2010 +0200
+++ b/debian/cubicweb-documentation.install.in	Fri Oct 15 16:20:27 2010 +0200
@@ -1,2 +1,1 @@
-doc/book usr/share/doc/cubicweb-documentation
 debian/cubicweb-doc usr/share/doc-base/cubicweb-doc
--- a/debian/rules	Fri Oct 15 16:12:47 2010 +0200
+++ b/debian/rules	Fri Oct 15 16:20:27 2010 +0200
@@ -38,6 +38,8 @@
 
 	# Put all the python library and data in cubicweb-common
 	# and scripts in cubicweb-server
+	# build doc
+	BUILDDIR=${PWD}/debian/tmp/cubicweb-book/en make -e -C doc/book/en html
 	dh_install -vi
 	# cwctl in the cubicweb-ctl package
 	rm -f debian/cubicweb-common/usr/share/pyshared/cubicweb/cwctl.py