From b2888c0b073f406517d5f77b5d869b160f08d8b7 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/program@721 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/get_ver.awk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/get_ver.awk b/src/get_ver.awk index 09d4e40..5abc22b 100644 --- a/src/get_ver.awk +++ b/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