[libgda/LIBGDA_4.0] Added a dist hook to generate the ChangeLog
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Added a dist hook to generate the ChangeLog
- Date: Mon, 24 Aug 2009 18:55:49 +0000 (UTC)
commit 0b924b3b44157e6c145af2cef87816b16799d87b
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Aug 24 20:52:35 2009 +0200
Added a dist hook to generate the ChangeLog
Makefile.am | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index dda7d57..4acfabd 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -78,6 +78,20 @@ EXTRA_DIST = \
getsp.class \
getsp.java
+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 -w eb0a68166a0b08c369a1acd8ebbde6e939d30d67.. --pretty=format:"%cd %an <%ae>%n%n%s%n%n%b%n" --date=short ) > 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
+
pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA = libgda-$(GDA_ABI_VERSION).pc libgda-report-$(GDA_ABI_VERSION).pc libgda-xslt-$(GDA_ABI_VERSION).pc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]