summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-10-22 15:23:00 +0200
committerinfirit <[email protected]>2013-10-22 15:23:00 +0200
commitadfbe7b569affc031cf64129ea99029842690aad (patch)
tree5a97d09ec92287974c85ce90cc0ed6fd0590b480
parent6457ca05c72c2d66c600c5ce56646a5055312b14 (diff)
downloadmate-polkit-adfbe7b569affc031cf64129ea99029842690aad.tar.bz2
mate-polkit-adfbe7b569affc031cf64129ea99029842690aad.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 718432e..b206148 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,3 +5,18 @@ EXTRA_DIST = \
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
+