Subject: Re: bug#22900: [platform-testers] new snapshot available: gzip-1.6.42-d6d4

From: Jim Meyering <[email-masked]>
Date: Tue, 15 Mar 2016 11:00:48 -0700

I noticed that gzip's gen-ChangeLog rule was not robust, and that the
copy in coreutils/Makefile.am was fixed, so sync'd with this diff
(piggy-packing on this "issue" thread so as not to create another for
something so trivial).
From 617a2126636a37d66d07aecf70875d30cd4391f9 Mon Sep 17 00:00:00 2001
From: Jim Meyering <[email-masked]>
Date: Tue, 15 Mar 2016 10:40:08 -0700
Subject: [PATCH] maint: don't ignore gitlog-to-changelog failure

* Makefile.am (gen-ChangeLog): Don't ignore failure of
gitlog-to-changelog. This syncs to coreutils' copy of this rule.
---
 Makefile.am | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index dfed9aa..e892cdc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,9 +98,9 @@ gen_start_date = 2008-01-01
 gen-ChangeLog:
 	$(AM_V_GEN)if test -d .git; then				\
 	  $(top_srcdir)/build-aux/gitlog-to-changelog			\
-	    --since=$(gen_start_date) > $(distdir)/cl-t;		\
-	  rm -f $(distdir)/ChangeLog;					\
-	  mv $(distdir)/cl-t $(distdir)/ChangeLog;			\
+	    --since=$(gen_start_date) > $(distdir)/cl-t &&		\
+	    { rm -f $(distdir)/ChangeLog &&				\
+	      mv $(distdir)/cl-t $(distdir)/ChangeLog; }		\
 	fi

 # Prepend "." to $PATH:
-- 
2.7.2