Copied from Coreutils. Note that git-log-fix does not yet exist, and even when it does, it will not be part of the tarball (since it only makes sense in the context of a git checkout).
* Makefile.am (gen-ChangeLog): Allow for corrections. Signed-off-by: Eric Blake <[email protected]> --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 296f2b5..b672d66 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,7 +86,11 @@ gen_start_date = 2012-01-15 18:00:00 UTC .PHONY: gen-ChangeLog gen-ChangeLog: if test -d $(top_srcdir)/.git; then \ - $(top_srcdir)/build-aux/gitlog-to-changelog \ + log_fix="$(srcdir)/build-aux/git-log-fix"; \ + test -e "$$log_fix" \ + && amend_git_log="--amend=$$log_fix" \ + || amend_git_log=; \ + $(top_srcdir)/build-aux/gitlog-to-changelog $$amend_git_log \ --since='$(gen_start_date)' > $(distdir)/cl-t \ && rm -f $(distdir)/ChangeLog \ && mv $(distdir)/cl-t $(distdir)/ChangeLog; \ -- 2.9.3
