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