r4012 - trunk/varnish-cache/lib/libvarnish
tfheen at projects.linpro.no
tfheen at projects.linpro.no
Mon Mar 30 15:57:00 CEST 2009
Author: tfheen
Date: 2009-03-30 15:56:59 +0200 (Mon, 30 Mar 2009)
New Revision: 4012
Modified:
trunk/varnish-cache/lib/libvarnish/Makefile.am
Log:
Handle git too
Some of us use git-svn, so embed the relevant commit ID in that case,
not just "exported" from svnversion.
Modified: trunk/varnish-cache/lib/libvarnish/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/libvarnish/Makefile.am 2009-03-30 12:39:05 UTC (rev 4011)
+++ trunk/varnish-cache/lib/libvarnish/Makefile.am 2009-03-30 13:56:59 UTC (rev 4012)
@@ -33,7 +33,7 @@
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 \
( \
More information about the varnish-commit
mailing list