diff options
author | Daniel Stone <daniel@fooishbar.org> | 2006-12-06 18:50:15 +0200 |
---|---|---|
committer | Daniel Stone <daniels@endtroducing.fooishbar.org> | 2006-12-06 18:50:15 +0200 |
commit | 9f3be57929048950ad0e03cfef44b5336c38aab3 (patch) | |
tree | 2a650b5d8c8dddf9a5b495c84a4ccfb70680f6f2 | |
parent | 5a5457e69c719980334cb662e5abcb77cd09bc7a (diff) |
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
-rw-r--r-- | Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index c8fa46d..b04f7aa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,6 @@ CLEANFILES=ChangeLog .PHONY: ChangeLog ChangeLog: - 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 |