Fix debian/rules to cope with development variants of `ocamlc -version`
authorStephane Glondu <steph@glondu.net>
Wed, 8 Feb 2012 15:52:15 +0000 (16:52 +0100)
committerStephane Glondu <steph@glondu.net>
Fri, 10 Feb 2012 15:42:11 +0000 (16:42 +0100)
debian/rules

index 216a7ad8ad64337fdb4d2cbeaa0eaf9123d1a1ef..0e282a06105b57e28f09b1916ede050b9f6ddf99 100755 (executable)
@@ -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