build: Fix ChangeLog building for builds from other worktrees.
authorWerner Koch <wk@gnupg.org>
Thu, 8 Jun 2017 08:10:47 +0000 (10:10 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 8 Jun 2017 08:10:47 +0000 (10:10 +0200)
* Makefile.am (gen-ChangeLog): Test for existance of ".git" regardless
on whether it is a file or directory.
--

git worktree create a plain file ".git" and not a ".git" directory.
Thus we can't check for the existance of a directory.

Signed-off-by: Werner Koch <wk@gnupg.org>
Makefile.am

index f946df2..f97af7f 100644 (file)
@@ -78,7 +78,7 @@ distcheck-hook:
 gen_start_date = 2011-12-01T14:00:00
 .PHONY: gen-ChangeLog
 gen-ChangeLog:
-       if test -d $(top_srcdir)/.git; then                             \
+       if test -e $(top_srcdir)/.git; then                             \
          (cd $(top_srcdir) &&                                          \
            $(GITLOG_TO_CHANGELOG) --append-dot --tear-off              \
            --amend=build-aux/git-log-fix                               \