summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-10-22 15:23:00 +0200
committerinfirit <[email protected]>2013-10-22 15:50:36 +0200
commit29c6f6984228bec38b38d535c44f996faf57d779 (patch)
tree3ad4996ba351ada8ec02cc3ca0efacab6ff1d915
parent824d38a4d464352235f29c092efe66cea01a6782 (diff)
downloadmate-polkit-29c6f6984228bec38b38d535c44f996faf57d779.tar.bz2
mate-polkit-29c6f6984228bec38b38d535c44f996faf57d779.tar.xz
Add changelog gen dist-hook
-rw-r--r--Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index aac187f..19583c6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,3 +11,18 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
clean-local :
rm -f *~ po/*~
+
+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 ) > 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
+