From c14385952f1eb5a3764934f8b74dfe7b17b56f48 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 18 Nov 2005 20:38:51 +0000 Subject: [PATCH] deal with versions ending in letters git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@721 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/get_ver.awk | 1 + 1 file changed, 1 insertion(+) diff --git a/program/src/get_ver.awk b/program/src/get_ver.awk index 09d4e402..5abc22ba 100644 --- a/program/src/get_ver.awk +++ b/program/src/get_ver.awk @@ -5,6 +5,7 @@ BEGIN { split($1, t, "="); my_ver_str = substr(t[2],2,length(t[2])-2); split(my_ver_str, v, "."); + gsub("[^0-9].*$", "", v[3]); my_ver = v[1] "," v[2] "," v[3]; } if (match ($0, /^NUMVERS=/)) { -- 2.30.2