From e19fbae0fe0abe836a937a320275abbf1f9eac7a Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 23 Jun 2019 10:17:48 +0200 Subject: Add git-check target from bogofilter. This is meant to see if the git export contains all files required for bootstrapping, in order to find files that were not added before a commit. --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e0fb5c75..963d98a3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -232,11 +232,19 @@ dist-hook: rsync: distdir $(srcdir)/.rsyncs @( cat $(srcdir)/.rsyncs | sed -e 's}^}rsync -aH --delete-after $(PACKAGE)-$(VERSION)/ }; s/\($$\)/ \&/;' ; echo "wait" ) | $(SHELL) -x -.PHONY: import-translations +.PHONY: import-translations git-check import-translations: rsync -Lrtvz translationproject.org::tp/latest/fetchmail/ $(top_srcdir)/po cd $(top_builddir)/po && $(MAKE) update-po +git-check: + @set -x && if test -d $(PACKAGE)-$(VERSION)-export ; then chmod -R u+rwX $(PACKAGE)-$(VERSION)-export ; fi && \ + rm -rf $(PACKAGE)-$(VERSION)-export && \ + mkdir $(PACKAGE)-$(VERSION)-export && \ + ( cd $(top_srcdir) && git archive --format=tar HEAD ) | tar -C $(PACKAGE)-$(VERSION)-export -xf - && \ + cd $(PACKAGE)-$(VERSION)-export && chmod -R u+rwX . && autoreconf -i -f -s -v \ + && mkdir _build && cd _build && ../configure && $(MAKE) distcheck + SUFFIXES = .html .txt .txt.html: asciidoc --unsafe -a toc -a data-uri -o $@ $< || { rm -f $@ ; exit 1 ; } -- cgit v1.2.3