summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-12-06 19:02:46 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-12-06 19:02:46 +0200
commiteb371188086824c4655840dd72831d16fbfb17ce (patch)
tree8ab36520116a1df7625b513ea195c16e97f806b7 /Makefile.am
parente091014e3c7573a49ce51d67f359bd0f3d3e1893 (diff)
downloadxorg-util-macros-eb371188086824c4655840dd72831d16fbfb17ce.tar.gz
Makefile.am: make ChangeLog hook safer
Make ChangeLog hook as safe as possible.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 792d62f..fd5c1ea 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,7 +27,7 @@ EXTRA_DIST = $(aclocal_DATA) 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