diff options
author | infirit <[email protected]> | 2013-11-08 23:37:16 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2013-11-08 23:37:16 +0100 |
commit | f25ab14084285273868b9e83e5b0065a59e724d7 (patch) | |
tree | a80168b2ca4dc8546c195581ec3144f8f3fc514f /Makefile.am | |
parent | 86c43c5dbefda4a3a04a6bbeb5169d4521844e13 (diff) | |
download | mate-settings-daemon-f25ab14084285273868b9e83e5b0065a59e724d7.tar.bz2 mate-settings-daemon-f25ab14084285273868b9e83e5b0065a59e724d7.tar.xz |
Add dist-hook for auto Changelog generation
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 14 |
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 |