diff options
author | Julien Cristau <jcristau@debian.org> | 2008-02-01 00:05:56 +0100 |
---|---|---|
committer | Julien Cristau <jcristau@debian.org> | 2008-02-01 00:05:56 +0100 |
commit | bde6425192d06d4168048c32ca92abbade085869 (patch) | |
tree | 4bae8d44363fcba9a46bcd6b5f25d0cb6293ecf0 | |
parent | e1a002217cabdb0806f28a0530a9cb972f370312 (diff) |
Make ChangeLog hook safer.
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 4d2488a..6299f16 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,7 +59,7 @@ MAINTAINERCLEANFILES = ChangeLog .PHONY: ChangeLog ChangeLog: - GIT_DIR=${srcdir}/.git 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 |