[Pkg-ocaml-maint-commits] r927 - packages/advi/branches/split/debian

Helge Kreutzmann kreutzm-guest@costa.debian.org
Mon, 24 Jan 2005 09:19:03 +0100


Author: kreutzm-guest
Date: 2005-01-24 09:19:03 +0100 (Mon, 24 Jan 2005)
New Revision: 927

Modified:
   packages/advi/branches/split/debian/rules
Log:
*Properly define VERSION in the header
*Start to work on kludge to get proper man page included (we cannot
 rebuild it, unfortunately)
*Include manual (maybe too much at this moment). pdf remains unstripped,
 and files are copied manually right now (since we only need very few here).


Modified: packages/advi/branches/split/debian/rules
===================================================================
--- packages/advi/branches/split/debian/rules	2005-01-24 08:16:51 UTC (rev 926)
+++ packages/advi/branches/split/debian/rules	2005-01-24 08:19:03 UTC (rev 927)
@@ -5,7 +5,7 @@
 # We want to use dpatch.
 include /usr/share/dpatch/dpatch.make
 PACKAGE = advi
-VERSION = 1.4.0
+VERSION = 1.6.0
 
 export DH_VERBOSE=1
 
@@ -86,8 +86,13 @@
 	rm examples/basics/bar.eps
 
 	#We copy the man file manually
-	cp -p doc_src/advi.man doc/advi.1
+# FIXME We need to replace $Version (because we use the src, not the build one). Should we hardcode to the one found in
+#       the pre-build version? Right now simply copy if make clean killed it (on freshly unpacked source, we use the
+#       original; in the long run make clean has to be fixed
+	if [ ! -e doc/advi.1 ]; then cp -p doc_src/advi.man doc/advi.1; fi
 
+	cd doc && $(MAKE)
+
 	touch build-stamp
 
 clean: realclean unpatch backup-clean
@@ -126,12 +131,14 @@
 	dh_testroot -i 
 	dh_installdocs -i
 	dh_installexamples -i -X\\.aux -X\\.cmi -X\\.cmo -X\\.log -X\\.out -X\\.toc
+	mkdir $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/manual
+	cd doc && cp -ivp mathmode.dvi splash.dvi scratch_write_splash.dvi scratch_draw_splash.dvi advi_remote.dvi manual.pdf $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/manual
 	mv $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/examples \
 	   $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples
 	rm $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples/seminar/a14/fig/*.png
 	rm $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples/seminar/a14/fig/*.gif
 	dh_installchangelogs -i
-	dh_compress -i -Xadviback.ppm -X.mp3 -Xtaquin -Xfumicamltrans.ppm -Xinria.ps
+	dh_compress -i -Xadviback.ppm -X.mp3 -Xtaquin -Xfumicamltrans.ppm -Xinria.ps -Xmanual.pdf
 	cd $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples/seminar/a14/fig/ && gunzip *.eps.gz
 	cd $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples/seminar/clock/ && gunzip *.eps.gz
 	cd $(CURDIR)/debian/advi-examples/usr/share/doc/advi-examples/examples/upstream-examples/slitex/skin_detection/ && gunzip *.eps.gz