Commit f6e0e2cc authored by Felix Riemann's avatar Felix Riemann

Autogenerate ChangeLog on make dist

parent f9adc355
......@@ -2,7 +2,7 @@ SUBDIRS = plugins po
EXTRA_DIST = \
autogen.sh \
ChangeLog
ChangeLog.pre-git
DISTCLEANFILES = \
intltool-extract \
......@@ -22,4 +22,22 @@ MAINTAINERCLEANFILES = \
DISTCHECK_CONFIGURE_FLAGS = --with-plugins=really-all
# This is the last commit before the ChangeLog was converted
CHANGELOG_START = 31a915800c37113e85f3b9f926e275beb7c06c91
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 -M -C --stat \
$(CHANGELOG_START)..) > 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
......@@ -12,7 +12,7 @@ AC_SUBST(EOG_PLUGINS_MAJOR)
AC_PREREQ(2.59)
AM_INIT_AUTOMAKE([1.9 dist-bzip2 no-dist-gzip])
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip])
# Support silencing the build output if supported (automake-1.11+)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
......
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