[4.0] fc0eaa7 Extract gitref using same method as debs.
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:42 CET 2015
commit fc0eaa7bbbc0608bc7c7bde4cd9657de61d56765
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Thu Nov 27 19:03:53 2014 +0100
Extract gitref using same method as debs.
diff --git a/redhat/find-provides b/redhat/find-provides
index 81d6c9e..2545e99 100755
--- a/redhat/find-provides
+++ b/redhat/find-provides
@@ -12,9 +12,8 @@ fi
cd $(dirname $0)/..
-printf '#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
- | cpp - -Iinclude \
- | sed -e '/"Varnish/!d' -e 's/.*\ \(.*\)\"$/varnishabi-strict-\1/'
+printf '#include "vcs_version.h"\nVCS_Version\n' \
+ | cpp - -Iinclude | sed -e '/^"/!d' -e 's/\"//g' -e 's/^/varnishabi-strict-/'
printf '#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
| cpp - -Iinclude \
More information about the varnish-commit
mailing list