Commit d1d978dd authored by Sergey Petrunya's avatar Sergey Petrunya

Fix win/configure.js: now configure.in has AM_INIT_AUTOMAKE(mariadb, ...)

- Part 2. make it really work.
parent 56841ace
......@@ -157,11 +157,15 @@ function GetVersion(str)
{
var key = "AM_INIT_AUTOMAKE(mysql, ";
var key2 = "AM_INIT_AUTOMAKE(mariadb, ";
var key_len = key.length;
var pos = str.indexOf(key); //5.0.6-beta)
if (pos == -1)
{
pos = str.indexOf(key2);
key_len= key2.length;
}
if (pos == -1) return null;
pos += key.length;
pos += key_len;
var end = str.indexOf(")", pos);
if (end == -1) return null;
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