Skip to content

Commit

Permalink
Generate empty ChangeLog if no .git is available.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
phcoder committed Jan 24, 2015
1 parent 14c9a72 commit b8f5371
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ ChangeLog: FORCE
if test -d $(top_srcdir)/.git; then \
$(gitlog_to_changelog) --srcdir=$(top_srcdir) --since=$(changelog_start_date) > '[email protected]'; \
rm -f '$@'; mv '[email protected]' '$@'; \
else \
touch $@; \
fi

EXTRA_DIST += ChangeLog ChangeLog-2015

0 comments on commit b8f5371

Please sign in to comment.