summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-11-08 22:36:10 +0100
committerinfirit <[email protected]>2013-11-08 22:42:23 +0100
commit57285b6cd5a8688a8d3ac79feabb3fa54ee1d17f (patch)
tree4f534c7feb61519a9ede86b8e4b4434c6508c5c9
parent9630a64882ae8f9ad8283ab5d736382e4e6a2a38 (diff)
downloadmate-system-monitor-57285b6cd5a8688a8d3ac79feabb3fa54ee1d17f.tar.bz2
mate-system-monitor-57285b6cd5a8688a8d3ac79feabb3fa54ee1d17f.tar.xz
Add dist-hook for Changelog creation
-rw-r--r--Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 075a7d7..a22fccb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -30,3 +30,17 @@ DISTCLEANFILES = \
mate-system-monitor.desktop
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper
+
+dist-hook:
+ @if test -d "$(srcdir)/.git"; \
+ then \
+ echo Creating ChangeLog && \
+ (GIT_DIR=$(top_srcdir)/.git \
+ ./missing --run git log --stat -M -C --name-status --date=short --no-color) | \
+ fmt --split-only > 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