[master] f618626 out-of-tree build support: git commands
Nils Goroll
nils.goroll at uplex.de
Wed Dec 7 14:06:04 CET 2016
commit f618626d61bd3c1578e0f2a901a18d4c51a580ef
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Wed Dec 7 14:04:27 2016 +0100
out-of-tree build support: git commands
diff --git a/include/Makefile.am b/include/Makefile.am
index f3dfe09..0bf9cec 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -112,8 +112,8 @@ BUILT_SOURCES = vcs_version.h vmod_abi.h
MAINTAINERCLEANFILES = vcs_version.h
vcs_version.h: FORCE
@if [ -d "$(top_srcdir)/.git" ]; then \
- V="$$(git show -s --pretty=format:%h)" \
- B="$$(git rev-parse --abbrev-ref HEAD)" \
+ V="$$(git --git-dir=$(top_srcdir)/.git show -s --pretty=format:%h)" \
+ B="$$(git --git-dir=$(top_srcdir)/.git rev-parse --abbrev-ref HEAD)" \
H="$$(head -n 1 vcs_version.h 2>/dev/null || true)"; \
if [ "/* $$V */" != "$$H" ]; then \
( \
More information about the varnish-commit
mailing list