Commit f1033c36 authored by Roland Levillain's avatar Roland Levillain

Add a rule to update ChangeLog using Git commit messages.

	* build-aux/gitlog-to-changelog: New.
	Imported from Git Gnulib.
	* .last-cl-gen: New.
	* Makefile.am (update-ChangeLog): New target.
	(EXTRA_DIST): Add build-aux/gitlog-to-changelog and .last-cl-gen.
parent ce41c53e
......@@ -11,4 +11,7 @@ Makefile.in
/configure
/INSTALL
/build-aux/
/build-aux/depcomp
/build-aux/install-sh
/build-aux/missing
/build-aux/ylwrap
e3eacb76c773274cd0b46e28b6cdb8a96a508cb1
......@@ -2,7 +2,7 @@
##
## MonoBURG, an iburg like code generator generator.
##
## Copyright (C) 2001, 2002, 2004, 2005, 2012 Ximian, Inc.
## Copyright (C) 2001, 2002, 2004, 2005, 2012, 2013 Ximian, Inc.
##
## This program is free software; you can redistribute it and/or
## modify it under the terms of the GNU General Public License
......@@ -14,3 +14,24 @@
SUBDIRS = src tests man
EXTRA_DIST = bootstrap NOTICE
## ------------------------ ##
## ChangeLog regeneration. ##
## ------------------------ ##
.PHONY: update-ChangeLog
update-ChangeLog:
$(AM_V_GEN)if test -d $(srcdir)/.git; then \
$(srcdir)/build-aux/gitlog-to-changelog \
--format='%s%n%n%b%n' --no-cluster \
--strip-tab --strip-cherry-pick \
-- $$(cat $(srcdir)/.last-cl-gen).. \
>ChangeLog.tmp \
&& git rev-list -n 1 HEAD >.last-cl-gen.tmp \
&& (echo; cat $(srcdir)/ChangeLog) >>ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(srcdir)/ChangeLog \
&& mv -f .last-cl-gen.tmp $(srcdir)/.last-cl-gen \
&& rm -f ChangeLog.tmp; \
fi
EXTRA_DIST += build-aux/gitlog-to-changelog .last-cl-gen
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment