Commit f618626d authored by Nils Goroll's avatar Nils Goroll

out-of-tree build support: git commands

parent 17a55aca
...@@ -112,8 +112,8 @@ BUILT_SOURCES = vcs_version.h vmod_abi.h ...@@ -112,8 +112,8 @@ BUILT_SOURCES = vcs_version.h vmod_abi.h
MAINTAINERCLEANFILES = vcs_version.h MAINTAINERCLEANFILES = vcs_version.h
vcs_version.h: FORCE vcs_version.h: FORCE
@if [ -d "$(top_srcdir)/.git" ]; then \ @if [ -d "$(top_srcdir)/.git" ]; then \
V="$$(git show -s --pretty=format:%h)" \ V="$$(git --git-dir=$(top_srcdir)/.git show -s --pretty=format:%h)" \
B="$$(git rev-parse --abbrev-ref HEAD)" \ B="$$(git --git-dir=$(top_srcdir)/.git rev-parse --abbrev-ref HEAD)" \
H="$$(head -n 1 vcs_version.h 2>/dev/null || true)"; \ H="$$(head -n 1 vcs_version.h 2>/dev/null || true)"; \
if [ "/* $$V */" != "$$H" ]; then \ if [ "/* $$V */" != "$$H" ]; then \
( \ ( \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment