From f49d994c43b1df6da89aab349cb037195b9a1a2e Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 16 Feb 2014 17:15:23 +0100 Subject: Add dist-hook for ChangeLog --- Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index eba1660..3e3be0d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -113,3 +113,16 @@ MAINTAINERCLEANFILES = \ po/Makefile.in.in \ po/$(GETTEXT_PACKAGE).pot +dist-hook: + @if test -d "$(srcdir)/.git"; \ + then \ + echo Creating ChangeLog && \ + ( cd "$(top_srcdir)" && \ + echo '# Generated by Makefile. Do not edit.'; echo; \ + $(top_srcdir)/missing --run git log ) > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; \ + echo Failed to generate ChangeLog >&2 ); \ + else \ + echo A git clone is required to generate a ChangeLog >&2; \ + fi -- cgit v1.2.1