From eaf8b5da610f6d00d8ba865b52da5a5549853129 Mon Sep 17 00:00:00 2001 From: Timothy Sample Date: Tue, 21 May 2019 20:37:44 -0400 Subject: [PATCH] Make sure that the tarball has everything. * Makefile.am (distcheck-hook): New target. --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 1664ec0..636c6e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -368,6 +368,20 @@ gen-ChangeLog: rm -f $(distdir)/ChangeLog mv $(distdir)/ChangeLog-t $(distdir)/ChangeLog +distcheck-hook: + set -e; \ + manifest=$(distdir)/.tarball-manifest; \ + test -f "$$manifest"; \ + for x in `cat "$$manifest"`; \ + do \ + if ! test -f $(distdir)/"$$x" \ + && ! test "$$x" = .gitignore; \ + then \ + echo "Missing: $$x"; \ + exit 1; \ + fi; \ + done + # Cleaning ##########