[Pkg-ocaml-maint-commits] [SCM] ocaml-ssl packaging branch, master, updated. debian/0.4.3-2-1-g5c268cb

Sylvain Le Gall gildor at debian.org
Sat Jul 25 17:26:18 UTC 2009


The following commit has been merged in the master branch:
commit 5c268cbb2056e0a19ac425c4378d13adf50a018d
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sat Jul 25 17:26:17 2009 +0000

    Save doc/ directory before cleaning it

diff --git a/debian/changelog b/debian/changelog
index 105d04a..1b39eee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ocaml-ssl (0.4.3-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Save doc/ directory before cleaning it
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sat, 25 Jul 2009 17:25:39 +0000
+
 ocaml-ssl (0.4.3-2) unstable; urgency=low
 
   * Added makefile.dpatch in order not to link with unix and not to use
diff --git a/debian/rules b/debian/rules
index fd7408c..f76808e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,22 @@ include /usr/share/cdbs/1/rules/dpatch.mk
 DESTDIR = $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)
 DEB_MAKE_INSTALL_TARGET = install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
 
+my-pre-clean:
+	if ! test -d doc.save; then \
+	 cp -r doc doc.save; \
+	fi
+
+.PHONY: my-pre-clean
+
+$(patsubst %,cleanbuilddir/%,$(DEB_ALL_PACKAGES)) :: my-pre-clean
+
+clean:: 
+	-if ! test -d doc; then \
+	  mv doc.save doc; \
+	else \
+	  rm -rf doc.save; \
+	fi
+
 build/libssl-ocaml::
 	$(MAKE) doc
 	mkdir -p $(DESTDIR)

-- 
ocaml-ssl packaging



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