From 8172528bb894856aa5b133f61444294dc5a347e6 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Wed, 6 Dec 2006 18:51:59 +0200 Subject: Makefile.am: make ChangeLog hook safer Make ChangeLog hook as safe as possible. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index b2a9f52..b9cb084 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,6 +24,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 -- cgit v1.2.3