Generate empty ChangeLog if no .git is available.

When making dist from a git snapshot without repo available make dist would
fail to find ChangeLog. Generate empty ChangeLog if no ChangeLog is already
present and repo is not available.

Reported by: Andrei Borzenkov <arvidjaar@gmail.com>
This commit is contained in:
Vladimir Serbinenko 2015-01-24 20:14:59 +01:00
parent 14c9a72039
commit b8f537199a

View file

@ -447,6 +447,8 @@ ChangeLog: FORCE
if test -d $(top_srcdir)/.git; then \ if test -d $(top_srcdir)/.git; then \
$(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '$@.tmp'; \ $(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '$@.tmp'; \
rm -f '$@'; mv '$@.tmp' '$@'; \ rm -f '$@'; mv '$@.tmp' '$@'; \
else \
touch $@; \
fi fi
EXTRA_DIST += ChangeLog ChangeLog-2015 EXTRA_DIST += ChangeLog ChangeLog-2015