summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2013-11-08 23:37:16 +0100
committerinfirit <[email protected]>2013-11-08 23:47:31 +0100
commitd52a4ac5dada42cc49e11818da3a14e8253711a5 (patch)
tree969a8352e8a2fa538e4c64b87fa739440a2023ad
parent64106e463750c301ad6183fc87e0fc81037e9f9b (diff)
downloadmate-settings-daemon-d52a4ac5dada42cc49e11818da3a14e8253711a5.tar.bz2
mate-settings-daemon-d52a4ac5dada42cc49e11818da3a14e8253711a5.tar.xz
Add dist-hook for auto Changelog generation
-rw-r--r--Makefile.am14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 2d37078..2d42695 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -16,3 +16,17 @@ EXTRA_DIST = \
DISTCLEANFILES = \
$(NULL)
+
+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