[gtksourceview] Autogenerate ChangeLog



commit eb203e687c0356b198195025c56adacc793a1019
Author: Paolo Borelli <porelli gnome org>
Date:   Sat Apr 18 18:44:56 2009 +0200

    Autogenerate ChangeLog
    
    Autogenerate ChangeLog from the git log.
---
 ChangeLog   |    2 ++
 Makefile.am |   21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..35b2282
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,2 @@
+The ChangeLog is autogenerated when creating the release.
+If you are seeing this, use git log for viewing the list of changes.
diff --git a/Makefile.am b/Makefile.am
index acb0a11..fcf5510 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,3 +19,24 @@ DISTCLEANFILES = \
 	intltool-update
 
 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
+
+distclean-local:
+	if test $(srdcir) = .; then :; else \
+		rm -f ChangeLog; \
+	fi
+
+ChangeLog:
+	@echo Creating $@
+	@if test -d "$(srcdir)/.git"; then \
+	  (GIT_DIR=$(top_srcdir)/.git ./missing --run git log GTKSOURCEVIEW_2_26_1^^.. --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
+
+.PHONY: ChangeLog



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