Fix win/configure.js: now configure.in has AM_INIT_AUTOMAKE(mariadb, ...)
- Part 2. make it really work.
This commit is contained in:
parent
56841aced4
commit
d1d978ddc4
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user