[4.0] d53f18d Export the VRT runtime version.
Lasse Karstensen
lkarsten at varnish-software.com
Thu Jan 15 16:35:42 CET 2015
commit d53f18df38f55318320469ba0366771a3a071c6b
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Thu Nov 27 16:58:57 2014 +0100
Export the VRT runtime version.
The vmod packages need this to know if they are
installable or not for this Varnish version.
diff --git a/redhat/find-provides b/redhat/find-provides
index 8c7dce5..81d6c9e 100755
--- a/redhat/find-provides
+++ b/redhat/find-provides
@@ -12,4 +12,10 @@ fi
cd $(dirname $0)/..
-printf '#include "vmod_abi.h"\nVMOD_ABI_Version' | cpp - -Iinclude | sed '/^#/D;s/"//g;s/\([A-Z]\)/\L\1/g;s/[^a-z0-9.]/-/g;s/varnish/varnishabi/'
+printf '#include "vmod_abi.h"\nVMOD_ABI_Version\n' \
+ | cpp - -Iinclude \
+ | sed -e '/"Varnish/!d' -e 's/.*\ \(.*\)\"$/varnishabi-strict-\1/'
+
+printf '#include "vrt.h"\nvarnishabi- VRT_MAJOR_VERSION . VRT_MINOR_VERSION\n' \
+ | cpp - -Iinclude \
+ | sed -e '/^varnishabi-/!d' -e 's/U//g' -e 's/ //g'
More information about the varnish-commit
mailing list