Commit 0a90bfe6 authored by Kent Boortz's avatar Kent Boortz

Adjuster the parsing of "configure.in" version number line

parent 579bd58c
...@@ -140,11 +140,11 @@ function GetValue(str, key) ...@@ -140,11 +140,11 @@ function GetValue(str, key)
function GetVersion(str) function GetVersion(str)
{ {
var key = "AM_INIT_AUTOMAKE(mysql, "; var key = "AC_INIT([MySQL Server], [";
var pos = str.indexOf(key); //5.0.6-beta) var pos = str.indexOf(key);
if (pos == -1) return null; if (pos == -1) return null;
pos += key.length; pos += key.length;
var end = str.indexOf(")", pos); var end = str.indexOf("]", pos);
if (end == -1) return null; if (end == -1) return null;
return str.substring(pos, end); return str.substring(pos, end);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment