From: oetiker Date: Fri, 18 Nov 2005 20:38:51 +0000 (+0000) Subject: deal with versions ending in letters X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b2888c0b073f406517d5f77b5d869b160f08d8b7;p=rrdtool.git deal with versions ending in letters git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@721 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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=/)) {