diff options
author | Lucas Rocha <lucasr@gnome.org> | 2009-08-10 22:04:24 +0100 |
---|---|---|
committer | Lucas Rocha <lucasr@gnome.org> | 2009-08-10 22:04:47 +0100 |
commit | 63da872c906d3cb8925926f192b6db5f52254772 (patch) | |
tree | d10486c16d98f45ae7d8184b9c8ea695b169c6ac /Makefile.am | |
parent | Add ChangeLog with commit message instructions (diff) | |
download | zenity-63da872c906d3cb8925926f192b6db5f52254772.tar.gz zenity-63da872c906d3cb8925926f192b6db5f52254772.tar.bz2 zenity-63da872c906d3cb8925926f192b6db5f52254772.zip |
Autogenerate ChangeLog on distcheck
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 b224ee5f..03accc17 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,3 +21,17 @@ DISTCLEANFILES = \ gnome-doc-utils.make DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper + +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 $(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 |