Commit 3c6104c7 authored by Matthew Barnes's avatar Matthew Barnes

Generate a ChangeLog file in tarballs.

parent d25965c2
......@@ -44,4 +44,20 @@ MAINTAINERCLEANFILES = \
$(srcdir)/m4/lt~obsolete.m4 \
$(NULL)
# Generate a ChangeLog file from 'git log'
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 --stat \
EVOLUTION_EWS_3_2_1..) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(top_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
-include $(top_srcdir)/git.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment