[longomatch] Auto-generate ChangeLog in 'make dist' using git-log



commit 1f4394f3369c7cf2993edfc3f70916f075f9df1b
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Sep 23 21:22:17 2009 +0200

    Auto-generate ChangeLog in 'make dist' using git-log

 ChangeLog   |   74 -----------------------------------------------------------
 Makefile.am |   11 ++++++++
 2 files changed, 11 insertions(+), 74 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6f64985..dc6e2e6 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,3 +8,14 @@ endif
 if ENABLE_RELEASE
  SUBDIRS =  libcesarplayer Translations CesarPlayer LongoMatch
 endif
+
+# Build ChangeLog from GIT history
+ChangeLog:
+	@if test -f $(top_srcdir)/.git/HEAD; then \
+		git log --pretty=format:'%ad %an <%ae>%n%s ' --stat --after="Jul 01 23:47:57 2009" > $@; \
+	fi
+
+dist: ChangeLog
+
+.PHONY: ChangeLog
+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]