[libslab] Autgenerate ChangeLog
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [libslab] Autgenerate ChangeLog
- Date: Sat, 25 Jul 2009 09:42:48 +0000 (UTC)
commit 3d3673d6547b45cb90c9ed3f5d69cc5afdd76bea
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Jul 25 11:36:31 2009 +0200
Autgenerate ChangeLog
Makefile.am | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 0cc8622..5ed3e02 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,5 +3,23 @@ SUBDIRS = libslab po
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libslab.pc
+GIT_START = b515f410cb472ae416995c5578d98bab7f80b504
+
+ChangeLog:
+ @echo Creating $@
+ @if test -d "$(srcdir)/.git"; then \
+ (GIT_DIR=$(top_srcdir)/.git ./missing --run git log $(GIT_START).. --stat -M -C --name-status --date=short --no-color) | fmt --split-only > $ tmp \
+ && mv -f $ tmp $@ \
+ || ($(RM) $ tmp; \
+ echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
+ (test -f $@ || echo git-log is required to generate this file >> $@)); \
+ else \
+ test -f $@ || \
+ (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
+ echo A git checkout and git-log is required to generate this file >> $@); \
+ fi
+
EXTRA_DIST = \
- ChangeLog.old
+ ChangeLog.old
+
+.PHONY: ChangeLog
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]