On failure of dh_install, dump the contents of debian/tmp
authorStephane Glondu <steph@glondu.net>
Thu, 19 Feb 2009 15:52:11 +0000 (16:52 +0100)
committerStephane Glondu <steph@glondu.net>
Thu, 19 Feb 2009 15:58:47 +0000 (16:58 +0100)
debian/rules

index f4d4038855ef6b773a61643ded71677b2b351c6d..d715f9824d0c8928e08bf51ac090f3c260b8e19b 100755 (executable)
@@ -150,7 +150,11 @@ install-stamp:
 # To avoid erroneous dh_install warnings
        rm -f $(INSTDIR)/share/man/man1/ocamlopt.opt.1 $(INSTDIR)/share/man/man1/ocamlc.opt.1
 # Dispatch files with dh_install
-       dh_install --list-missing
+       if ! dh_install --list-missing; then \
+         @echo "===> dh_install has failed with exit code $?... <==="; \
+         find debian/tmp; \
+         exit 1; \
+       fi
 # Install additional files not handled by dh_install
 # Beware: dh_install does not handle renamings, please pay attention
        cp otherlibs/labltk/README debian/ocaml/usr/share/doc/ocaml/README.labltk