From: Stephane Glondu Date: Wed, 8 Feb 2012 15:52:15 +0000 (+0100) Subject: Fix debian/rules to cope with development variants of `ocamlc -version` X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~278 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eda1c6d14a1d2b25c2d511b0b0c9793dddb30869;p=ocaml.git Fix debian/rules to cope with development variants of `ocamlc -version` --- diff --git a/debian/rules b/debian/rules index 216a7ad8..0e282a06 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