+2025-01-10 Bruno Haible <bruno@clisp.org>
+
+ gitlog-to-changelog: Recommend more reliable Makefile rule idiom.
+ Reported by Basil L. Contovounesios <basil@contovou.net>.
+ * doc/gitlog-to-changelog.texi: Make the gen-ChangeLog rule fail if the
+ ChangeLog file cannot be created or if the disk is full. Drop the use of
+ an intermediate file, not needed under $(distdir).
+
2025-01-10 Bruno Haible <bruno@clisp.org>
doc: Fix syntax errors (regression yesterday).
$(AM_V_GEN)if test -e $(srcdir)/.git; then \
LC_ALL=en_US.UTF-8 TZ=UTC0 \
$(top_srcdir)/build-aux/gitlog-to-changelog \
- --srcdir=$(srcdir) > $(distdir)/ChangeLog.tmp && \
- mv -f $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
+ --srcdir=$(srcdir) > $(distdir)/ChangeLog \
+ || exit 1; \
fi
@end example
$(AM_V_GEN)if test -e $(srcdir)/.git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--srcdir=$(srcdir) --commit-timezone \
- > $(distdir)/ChangeLog.tmp && \
- mv -f $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
+ > $(distdir)/ChangeLog \
+ || exit 1; \
fi
@end example
--srcdir=$(srcdir) \
"$$amend_git_log" -- 'v$(gen_start_ver)~..' && \
printf '\n\nSee the source repo for older entries.\n'; \
- @} > $(distdir)/ChangeLog.tmp && \
- mv -f $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
+ @} > $(distdir)/ChangeLog \
+ || exit 1; \
fi
@end example