Commit ba125eaa authored by Lucian Langa's avatar Lucian Langa
Browse files

Generate ChangeLog files for tarball releases.

parent 03909335
2010-04-04 Lucian Langa <lucilanga@gnome.org>
* *: The ChangeLog is auto-generated when releasing. If you
are seeing this, use 'git log' for a detailed list of changes.
......@@ -3,9 +3,9 @@ SUBDIRS = pixmaps po src
ACLOCAL_AMFLAGS = -I m4
INTLTOOL = \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
intltool-extract.in \
intltool-merge.in \
intltool-update.in
EXTRA_DIST = \
$(INTLTOOL) \
......@@ -16,20 +16,10 @@ EXTRA_DIST = \
server.mk \
FAQ
# Build ChangeLog from GIT history
ChangeLog:
@if test -d $(top_srcdir)/.git; then \
GIT_DIR="$(top_srcdir)/.git" git log --stat > $@; \
fi
dist: ChangeLog
.PHONY: ChangeLog
DISTCLEANFILES = \
intltool-extract \
intltool-merge \
intltool-update
intltool-extract \
intltool-merge \
intltool-update
GITIGNOREFILES= aclocal.m4 \
compile \
......@@ -41,4 +31,21 @@ GITIGNOREFILES= aclocal.m4 \
m4/lt*.m4 \
src/GNOME_Evolution_RSS_2.26.server
# 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-RSS_0_1_4..) > 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
Supports Markdown
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