From ff30d077a3fed9d1b4d47b1ee42a6e0865c98bd8 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Wed, 27 Jan 2010 19:09:06 +0100 Subject: [PATCH] Fail if $(OCAML_ABI) is incorrect --- debian/rules | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/rules b/debian/rules index 0efc2cd0..a450c8ee 100755 --- a/debian/rules +++ b/debian/rules @@ -235,6 +235,11 @@ endif --runtime-map ocaml-nox:ocaml-base-nox,ocaml:ocaml-base,camlp4 \ --checksum $(OCAML_ABI) dh_gencontrol + # Check that OCAML_ABI is correct + if [ "$(OCAML_ABI)" != "$(shell boot/ocamlrun ocamlc -version)" ]; then \ + echo "Please adjust OCAML_ABI in debian/rules"; \ + exit 2; \ + fi dh binary --after dh_gencontrol touch $@ -- 2.30.2