[gedit-latex] Generate ChangeLog in distcheck



commit d4a3b61c4b328c84ae93367dadab4cdda39d339c
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sat Jul 2 14:09:00 2011 +0200

    Generate ChangeLog in distcheck

 Makefile.am |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 85aea16..ed8592c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,4 +41,18 @@ MAINTAINERCLEANFILES = 		\
 	py-compile		\
 	`find "$(srcdir)" -type f -name Makefile.in -print`
 
+dist-hook:
+	@if test -d "$(srcdir)/.git"; \
+	then \
+		echo Creating ChangeLog && \
+		(GIT_DIR=$(top_srcdir)/.git \
+		  ./missing --run git log --stat -M -C --name-status  --date=short --no-color) | \
+		  fmt --split-only > 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
+
 -include $(top_srcdir)/git.mk



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