summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 19:01:52 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 19:01:52 +0200
commit3bc9148509a058647a9c43d0e2668c94ac579884 (patch)
treeb3674d8e78994476ddac6f92129fe71c0a53a5dc
parent75a8fce621adecd50db129c839a578df630137db (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 2df13e7..e04b7ae 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -179,7 +179,7 @@ endif LINT
.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