[gimp] app: fix git-version.h when building linked working tree



commit 09c2ba4cc2782c18fa0236f2dbd41e04b60a2cb6
Author: Ell <ell_se yahoo com>
Date:   Wed Dec 6 04:44:44 2017 -0500

    app: fix git-version.h when building linked working tree
    
    When building a linked working tree, $(top_srcdir)/.git is a
    regular file, and not a directory.  Change the recipe for
    git-version.h to allow that.

 app/Makefile.am |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/Makefile.am b/app/Makefile.am
index 59591e9..6fa7c51 100644
--- a/app/Makefile.am
+++ b/app/Makefile.am
@@ -273,7 +273,7 @@ dist-hook: dist-check-gimp-console dist-dump-gimprc
 # already exists because then we are probably working with a tarball
 # in which case the git-version.h we ship is correct.
 git-version.h: update-git-version-header
-       @if test -d "$(top_srcdir)/.git"; then \
+       @if test -e "$(top_srcdir)/.git"; then \
          git_version="`git --git-dir=$(top_srcdir)/.git describe --always`"; \
          git_version_abbrev="`git --git-dir=$(top_srcdir)/.git rev-parse --short HEAD`"; \
          git_last_commit_year="`git --git-dir=$(top_srcdir)/.git log -n1 --reverse --pretty=%ci | cut -b 
1-4`"; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]