[xmds2] 02/02: Add commands for building the documentation

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Fri Jan 10 08:55:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch build-doc
in repository xmds2.

commit f7ba380560eb52e5f7b8be48426b881eadd0dbf1
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Fri Jan 10 02:10:32 2014 +0100

    Add commands for building the documentation
---
 debian/rules | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 0ae1845..0fd1ff0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,24 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-XMDS_USER_DATA = $(CURDIR)/debian/xmds-user-data
+DEBDIR=$(CURDIR)/debian
+XMDS_USER_DATA = $(DEBDIR)/xmds-user-data
+PREFIX=$(DEBDIR)/usr
+PYTHONPATH=$(PREFIX)/lib/python2.7/site-packages
 
 #DH_VERBOSE=1
 
 %:
 	dh $@ --with python2
 
+override_dh_auto_build:
+	dh_auto_build
+	mkdir -p $(PYTHONPATH)
+	PYTHONPATH=$(PYTHONPATH) ./setup.py develop --prefix=$(PREFIX)
+	cp -a documentation documentation-orig
+	( cd admin/userdoc-source ; PYTHONPATH=$(PYTHONPATH) make html latex )
+	( cd documentation/latex ; make all-pdf )
+
 override_dh_auto_install:
 	python setup.py install --root=debian/xmds2 --install-layout=deb 
 
@@ -43,3 +54,6 @@ override_dh_auto_clean:
 	rm -rf build/
 	( cd examples ; rm -f lorenz.cc lorenz lorenz.xsil lorenz.h5 lorenz.m )
 	rm -rf testsuite_results $(XMDS_USER_DATA) bin-test
+	rm -rf $(PREFIX)
+	rm -rf documentation
+	mv documentation-orig documentation

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/xmds2.git



More information about the debian-science-commits mailing list