Commit f15a43ae authored by Roland Levillain's avatar Roland Levillain

Add a rule to update ChangeLog using Git commit messages.

	* gnulib.modules: Add gitlog-to-changelog.
	* build-aux/gitlog-to-changelog: New.
	Installed by bootstrap from Gnulib's repository.
	* build-aux/Makefile.am (SPECIFIC_TOOLS):
	Add dev/gitlog-to-changelog.
	* .last-cl-gen: New.
	* Makefile.am (update-ChangeLog): New target.
	(EXTRA_DIST): Add .last-cl-gen.
parent f47d3c5c
81bf8323f62695c773a7055017d36c9b584feb47
......@@ -10,3 +10,24 @@ EXTRA_DIST = \
install-doc-remote:
cd doc && $(MAKE) $(AM_MAKEFLAGS) $@
## ------------------------ ##
## 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 += .last-cl-gen
......@@ -20,4 +20,5 @@ STANDARD_TOOLS = \
missing \
mkinstalldirs
SPECIFIC_TOOLS =
SPECIFIC_TOOLS = \
gitlog-to-changelog
This diff is collapsed.
# List of gnulib modules needed for GNU tar.
# List of gnulib modules needed for Nolimips.
# A module name per line. Empty lines and comments are ignored.
gitlog-to-changelog
stdint
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