[Pkg-ocaml-maint-commits] [SCM] ocamlbricks packaging branch, master, updated. 51230bcd5342bb4389ed717c73b414037b1de943

Sylvain Le Gall gildor at debian.org
Mon Jun 16 23:08:10 UTC 2008


The following commit has been merged in the master branch:
commit a3328ba25344c07de4d4be50097e8f16ea2cffe4
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Tue Jun 17 01:01:45 2008 +0200

    Add and remove empty doc dir

diff --git a/debian/rules b/debian/rules
index bc85b27..459ba79 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,6 +37,7 @@ configure-stamp: ocamlinit
 build: build-stamp
 build-stamp: patch-stamp configure-stamp 
 	dh_testdir
+	test -d '$(CURDIR)/doc' || mkdir '$(CURDIR)/doc'
 	$(MAKE)
 	touch build-stamp
 
@@ -46,9 +47,10 @@ clean: unpatch
 	rm -f build-stamp configure-stamp 
 	$(MAKE) clean
 	dh_clean --exclude=buildsystem/* 
-	rm -f $(CURDIR)/debian/$(DEB_PACKAGE).doc-base.ocamldoc-apiref
-	rm -f $(CURDIR)/debian/$(DEB_PACKAGE).dirs
-	rm -f $(CURDIR)/debian/$(DEB_PACKAGE).*.debhelper 
+	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).doc-base.ocamldoc-apiref
+	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).dirs
+	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).*.debhelper 
+	-$(RM) -r '$(CURDIR)/doc'
 
 install: build
 	dh_testdir

-- 
ocamlbricks packaging



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