[Pkg-ocaml-maint-commits] [SCM] galax packaging branch, master, updated. debian/1.1-6-12-gd87eb43

Stephane Glondu steph at glondu.net
Tue May 18 22:02:44 UTC 2010


The following commit has been merged in the master branch:
commit 0f11a87ca162004e2c15bd086c53cf130e643b7a
Author: Stephane Glondu <steph at glondu.net>
Date:   Tue May 18 23:50:58 2010 +0200

    "Fix" doc generation

diff --git a/debian/rules b/debian/rules
index b6d832e..54118ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,8 @@ include /usr/share/ocaml/ocamlvars.mk
 	dh --with ocaml $@
 
 override_dh_auto_configure:
+	if [ ! -d doc.backup ]; then cp -a doc doc.backup; fi
+	$(MAKE) clean
 	for ext in sub guess; do \
 	  if [ -f /usr/share/misc/config.$$ext ] && \
 	    ! [ -f debian/config.orig.$$ext ]; then \
@@ -27,7 +29,8 @@ override_dh_auto_build:
 
 # remove .depend created during clean as they cause FTBFSs with -rsudo
 override_dh_auto_clean:
-	if [ -d doc ]; then mv doc doc.backup; fi
+	if [ -d doc -a ! -d doc.backup ]; then mv doc doc.backup; fi
+	rm -Rf doc
 	$(MAKE) clean
 	if [ -d doc.backup ]; then mv doc.backup doc; fi
 	for ext in sub guess; do \
@@ -55,4 +58,3 @@ override_dh_install:
 	dh_install -XCVS -Xlicense.tex
 override_dh_compress:
 	dh_compress -X.pdf
-

-- 
galax packaging



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