autoconf-patches
[Top][All Lists]
Advanced

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

[PATCH 3/3] maint: Allow amendments to git log when generating ChangeLog


From: Eric Blake
Subject: [PATCH 3/3] maint: Allow amendments to git log when generating ChangeLog
Date: Thu, 22 Dec 2016 15:36:46 -0600

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 <address@hidden>
---
 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]