[gvfs] Add rules to autogenerate ChangeLog



commit a8620dfb94955fd9e6678dc936b7f97d8610df00
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Apr 17 11:23:13 2009 +0200

    Add rules to autogenerate ChangeLog
---
 Makefile.am |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f7c5bf6..b47d4a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -25,3 +25,24 @@ DISTCLEANFILES = \
 	intltool-merge		\
 	intltool-update		\
 	$(NULL)
+
+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 GVFS_1_2_2.. --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]