[Pkg-ocaml-maint-commits] r4312 - in /trunk/packages/lablgl/trunk/debian: changelog rules

gildor at users.alioth.debian.org gildor at users.alioth.debian.org
Mon Sep 3 21:23:50 UTC 2007


Author: gildor
Date: Mon Sep  3 21:23:50 2007
New Revision: 4312

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=4312
Log:
* Generate documentation

Modified:
    trunk/packages/lablgl/trunk/debian/changelog
    trunk/packages/lablgl/trunk/debian/rules

Modified: trunk/packages/lablgl/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/lablgl/trunk/debian/changelog?rev=4312&op=diff
==============================================================================
--- trunk/packages/lablgl/trunk/debian/changelog (original)
+++ trunk/packages/lablgl/trunk/debian/changelog Mon Sep  3 21:23:50 2007
@@ -1,8 +1,8 @@
-lablgl (1.02-6) UNRELEASED; urgency=low
-
-  * UNRELEASED
-
- -- Sylvain Le Gall <gildor at debian.org>  Mon, 03 Sep 2007 16:41:10 +0200
+lablgl (1.02-6) unstable; urgency=low
+
+  * Generate ocamldoc documentation
+
+ -- Sylvain Le Gall <gildor at debian.org>  Mon, 03 Sep 2007 23:16:44 +0200
 
 lablgl (1.02-5) unstable; urgency=low
 

Modified: trunk/packages/lablgl/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/lablgl/trunk/debian/rules?rev=4312&op=diff
==============================================================================
--- trunk/packages/lablgl/trunk/debian/rules (original)
+++ trunk/packages/lablgl/trunk/debian/rules Mon Sep  3 21:23:50 2007
@@ -12,7 +12,7 @@
 # Uncomment this to turn on verbose mode. 
 #export DH_VERBOSE=1
 
-export OCAML_LIBDIR=`ocamlc -where`
+export OCAML_LIBDIR=$(shell ocamlc -where)
 
 #debian/control:
 #	 sed -e 's%#OcamlABI#%$(OCAMLABI)%' $@.in >$@
@@ -84,6 +84,22 @@
 	# ocaml sets an unneeded rpath in the stublibs
 	chrpath -d $(CURDIR)/debian/liblablgl-ocaml$(OCAML_LIBDIR)/stublibs/*.so
 
+	# Doc generation (TODO: use CDBS)
+	for i in liblablgl-ocaml-dev; do \
+	  mkdir -p debian/$$i/usr/share/doc/$$i/html/api; \
+	  OCAMLDOC_INCLUDE=`find debian/$$i/$(OCAML_LIBDIR)/ -type d -exec echo -I \{} \;`; \
+	  find debian/$$i/$(OCAML_LIBDIR)/ \
+  	    -type f -name '*.mli' -or -name '*.ml' \
+	    | xargs ocamldoc -I $(OCAML_LIBDIR)/labltk \
+	     -stars -m A -no-custom-tags $$OCAMLDOC_INCLUDE -html \
+	     -d debian/$$i/usr/share/doc/$$i/html/api \
+            || true; \
+	    sed -e "s/@PACKAGE@/$$i/g" \
+	     /usr/share/cdbs/1/class/ocaml-docbase-template.txt \
+	     > debian/$$i.doc-base.ocamldoc-apiref ; \
+	done
+
+
 # Build architecture-independent files here.
 # Pass -i to all debhelper commands in this target to reduce clutter.
 binary-indep: build install




More information about the Pkg-ocaml-maint-commits mailing list