Call dh_install with --fail-missing
authorStephane Glondu <steph@glondu.net>
Tue, 3 Apr 2012 11:40:54 +0000 (13:40 +0200)
committerStephane Glondu <steph@glondu.net>
Thu, 19 Apr 2012 06:33:43 +0000 (08:33 +0200)
debian/rules

index 43d63b5899e1aee384448842d0fb0c070981b3b6..a09a11dd9b2273a84d1ec4d92ff0e771c0ccaf73 100755 (executable)
@@ -207,15 +207,18 @@ endif
 ifeq (,$(DEB_TEST_BUILD_PREFIX))
 # Remove empty directory
        rmdir $(CURDIR)/debian/tmp$(OCAML_STDLIB_DIR)/ocamldoc/custom
-# To avoid erroneous dh_install warnings
-       rm -f $(INSTDIR)/share/man/man1/ocamlopt.opt.1 $(INSTDIR)/share/man/man1/ocamlc.opt.1
+# Remove uninstalled files
+       rm -f \
+         $(INSTDIR)/share/man/man1/ocamlopt.opt.1 \
+         $(INSTDIR)/share/man/man1/ocamlc.opt.1 \
+         $(INSTDIR)/bin/camlp4boot
 # Dispatch files with dh_install
        cd debian && \
        for u in ocaml ocaml-nox; do \
          DESTDIR=tmp ./gen_modules.pl $$u.install > $$u.install.new; \
          mv $$u.install.new $$u.install; \
        done
-       if ! dh_install --list-missing; then \
+       if ! dh_install --fail-missing; then \
          echo "===> dh_install has failed <==="; \
          find debian/tmp; \
          exit 1; \