[Pkg-ocaml-maint-commits] [SCM] ocamldap packaging branch, master, updated. debian/2.1.8-8

Sylvain Le Gall gildor at debian.org
Sat Dec 19 23:21:49 UTC 2009


The following commit has been merged in the master branch:
commit 41e895a29474a20173fbe7a567a62993d39b5a4b
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sat Dec 19 23:21:03 2009 +0000

    Protect .cmi(s) by moving and restoring during build process

diff --git a/debian/changelog b/debian/changelog
index 63bf105..83428e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ ocamldap (2.1.8-8) unstable; urgency=low
 
   [ Sylvain Le Gall ]
   * Put ocaml.mk at the beginning of debian/rules
+  * Protect .cmi(s) by moving and restoring during build process
 
  -- Sylvain Le Gall <gildor at debian.org>  Sat, 19 Dec 2009 23:08:33 +0000
 
diff --git a/debian/clean b/debian/clean
index 7b7c136..5f6c9e7 100644
--- a/debian/clean
+++ b/debian/clean
@@ -1,5 +1,3 @@
 varcc.cmo
 varcc.cmi
 varcc
-ldap_urlparser.cmi
-testoo.cmi
diff --git a/debian/rules b/debian/rules
index 490a24b..3be6bfe 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,6 +17,7 @@
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
+
 include /usr/share/cdbs/1/rules/ocaml.mk
 include /usr/share/cdbs/1/rules/dpatch.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
@@ -34,3 +35,15 @@ endif
 
 DEB_MAKE_INSTALL_TARGET  := install \
   OCAMLFIND_INSTFLAGS="-ldconf ignore -destdir $(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)"
+
+debian/protect-stamp:
+	-mv ldap_urlparser.cmi ldap_urlparser.cmi.old
+	-mv testoo.cmi  testoo.cmi.old
+	touch $@
+
+pre-build:: debian/protect-stamp
+
+clean:: debian/protect-stamp 
+	-mv ldap_urlparser.cmi.old ldap_urlparser.cmi
+	-mv testoo.cmi.old  testoo.cmi
+	-$(RM) debian/protect-stamp

-- 
ocamldap packaging



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