[Pkg-ocaml-maint-commits] [SCM] OCaml packaging branch, master, updated. debian/3.12.1-2-4-gfb228ca

Stephane Glondu steph at glondu.net
Fri Feb 10 15:45:22 UTC 2012


The following commit has been merged in the master branch:
commit eda1c6d14a1d2b25c2d511b0b0c9793dddb30869
Author: Stephane Glondu <steph at glondu.net>
Date:   Wed Feb 8 16:52:15 2012 +0100

    Fix debian/rules to cope with development variants of `ocamlc -version`

diff --git a/debian/rules b/debian/rules
index 216a7ad..0e282a0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -251,7 +251,7 @@ endif
 	 --checksum $(OCAML_ABI)
 	dh_gencontrol
 # Check that OCAML_ABI is correct
-	if [ "$(OCAML_ABI)" != "$(shell boot/ocamlrun ./ocamlc -version)" ]; then \
+	if [ "$(OCAML_ABI)" != "$(shell boot/ocamlrun ./ocamlc -version | { read a b && echo $$a; })" ]; then \
 	  echo "Please adjust OCAML_ABI in debian/rules"; \
 	  exit 2; \
 	fi

-- 
OCaml packaging



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