[PATCH] maint: make ChangeLog generation more robust (original) (raw)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
From: | Pádraig Brady |
---|---|
Subject: | [PATCH] maint: make ChangeLog generation more robust |
Date: | Sat, 19 Apr 2014 12:51:12 +0100 |
- Makefile.am (gen-ChangeLog): Sync changes from GNU hello to, ensure exit status is propagated and to support an optional git-log-fix file.
Makefile.am | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 8a38acd..7eb2d5c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -105,11 +105,12 @@ gen_start_date = 2008-02-08
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -d .git; then
+ log_fix="$(srcdir)/build-aux/git-log-fix";
+ test -e "$$log_fix" && amend_git_log="--amend=$$log_fix";
$(top_srcdir)/build-aux/gitlog-to-changelog
- --amend=$(srcdir)/build-aux/git-log-fix
- --since=$(gen_start_date) > $(distdir)/cl-t;
- rm -f $(distdir)/ChangeLog;
- mv (distdir)/cl−t(distdir)/cl-t (distdir)/cl−t(distdir)/ChangeLog;
+ amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t &&
+ { rm -f $(distdir)/ChangeLog &&
+ mv (distdir)/cl−t(distdir)/cl-t (distdir)/cl−t(distdir)/ChangeLog; }
fi
ALL_RECURSIVE_TARGETS += distcheck-hook
1.7.7.6
- [PATCH] maint: make ChangeLog generation more robust,Pádraig Brady <=
- Re: [PATCH] maint: make ChangeLog generation more robust, Jim Meyering, 2014/04/19
- Prev by Date:Re: New option for md5sum
- Next by Date:Re: [PATCH] maint: make ChangeLog generation more robust
- Previous by thread:New option for md5sum
- Next by thread:Re: [PATCH] maint: make ChangeLog generation more robust
- Index(es):