[Pkg-ocaml-maint-commits] [SCM] camlzip packaging branch, master, updated. debian/1.04-4-2-g9dd7363

Stephane Glondu steph at glondu.net
Sat Aug 22 10:58:37 UTC 2009


The following commit has been merged in the master branch:
commit a12e81f7c8b803f28e3bffe817dd24a852ec54c3
Author: Stephane Glondu <steph at glondu.net>
Date:   Sat Aug 22 12:27:49 2009 +0200

    Fix version field in META file

diff --git a/debian/META b/debian/META.in
similarity index 77%
rename from debian/META
rename to debian/META.in
index a7ca644..34bf1bd 100644
--- a/debian/META
+++ b/debian/META.in
@@ -1,4 +1,4 @@
-version="1.03"
+version="@VERSION@"
 requires="unix"
 archive(byte)="zip.cma"
 archive(native)="zip.cmxa"
diff --git a/debian/changelog b/debian/changelog
index 14aaf82..34b7612 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+camlzip (1.04-5) UNRELEASED; urgency=low
+
+  * Fix version field in META file
+
+ -- Stephane Glondu <steph at glondu.net>  Sat, 22 Aug 2009 12:25:33 +0200
+
 camlzip (1.04-4) unstable; urgency=low
 
   * Install zip.a along with zip.cmxa (Closes: #524017)
diff --git a/debian/rules b/debian/rules
index 7fedae2..0655788 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,7 @@ include /usr/share/ocaml/ocamlinit.mk
 include /usr/share/dpatch/dpatch.make
 
 INSTALLDIR := $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR)/zip
+VERSION := $(shell head -n1 debian/changelog | awk -F'[ ()-]+' '{print $$2}')
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -47,7 +48,7 @@ install: build
 ifneq ($(OCAML_OPT_ARCH),)
 	$(MAKE) installopt DESTDIR=$(CURDIR)/debian/tmp
 endif
-	cp debian/META $(INSTALLDIR)
+	sed 's/@VERSION@/$(VERSION)/' debian/META.in > $(INSTALLDIR)/META
 
 # Build architecture-independent files here.
 binary-indep: build install

-- 
camlzip packaging



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