Commit bbb1d1a3 authored by Tollef Fog Heen's avatar Tollef Fog Heen

just grab the commit hash for the revision information

parent f4347dcd
...@@ -37,7 +37,7 @@ BUILT_SOURCES = vcs_version.h ...@@ -37,7 +37,7 @@ BUILT_SOURCES = vcs_version.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 describe --always)" \ V="$$(git show -s --pretty=format:%h)" \
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