Commit 9d5cc196 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Handle git too

Some of us use git-svn, so embed the relevant commit ID in that case,
not just "exported" from svnversion.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4012 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent bfeb97e6
......@@ -33,7 +33,7 @@ libvarnish_la_LIBADD = ${RT_LIBS} ${NET_LIBS} ${LIBM}
DISTCLEANFILES = svn_version.c
svn_version.c: FORCE
V="$(shell svnversion -n $(top_srcdir))" \
V="$(shell git log -n 1 --pretty=format:%h || svnversion -n $(top_srcdir))" \
H="$(shell head -n 1 svn_version.c || true)"; \
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