Makefile.am: make ChangeLog hook safer

Make ChangeLog hook as safe as possible.
This commit is contained in:
Daniel Stone 2006-12-06 19:02:19 +02:00 committed by Daniel Stone
parent 528e313fd1
commit cf44526713

View file

@ -37,7 +37,7 @@ CLEANFILES=ChangeLog
.PHONY: ChangeLog
ChangeLog:
(cd $(srcdir) && git-log > ChangeLog )
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
dist-hook: ChangeLog