[zenity/gnome-2-28] Autogenerate ChangeLog on distcheck
- From: Lucas Almeida Rocha <lucasr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [zenity/gnome-2-28] Autogenerate ChangeLog on distcheck
- Date: Mon, 10 Aug 2009 21:13:46 +0000 (UTC)
commit 294a129b84dcdad906d2d8a2beb2a596b198a77d
Author: Lucas Rocha <lucasr gnome org>
Date: Mon Aug 10 22:04:24 2009 +0100
Autogenerate ChangeLog on distcheck
Makefile.am | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index b224ee5..03accc1 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]