summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 19:00:54 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 19:00:54 +0200
commiteaaa31aa77f06249de137018ef85903b0ad4aa39 (patch)
tree008bcb63b840afb3dbe9a57e8041e6b850d43341
parent93d7c1c797d8c74c18e78854fcf78a3f0d79b444 (diff)
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 4de13ba..28f0863 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,7 @@ EXTRA_DIST = xvmc.pc.in autogen.sh
.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