diff options
author | infirit <[email protected]> | 2013-10-22 15:23:00 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2013-10-22 15:50:36 +0200 |
commit | 29c6f6984228bec38b38d535c44f996faf57d779 (patch) | |
tree | 3ad4996ba351ada8ec02cc3ca0efacab6ff1d915 | |
parent | 824d38a4d464352235f29c092efe66cea01a6782 (diff) | |
download | mate-polkit-29c6f6984228bec38b38d535c44f996faf57d779.tar.bz2 mate-polkit-29c6f6984228bec38b38d535c44f996faf57d779.tar.xz |
Add changelog gen dist-hook
-rw-r--r-- | Makefile.am | 15 |
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 + |