1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

This commit is contained in:
Sergey Petrunya
2009-10-07 21:26:36 +04:00
parent 9d58141cdc
commit 56841aced4
2 changed files with 5 additions and 0 deletions

View File

@ -156,7 +156,10 @@ function GetValue(str, key)
function GetVersion(str)
{
var key = "AM_INIT_AUTOMAKE(mysql, ";
var key2 = "AM_INIT_AUTOMAKE(mariadb, ";
var pos = str.indexOf(key); //5.0.6-beta)
if (pos == -1)
pos = str.indexOf(key2);
if (pos == -1) return null;
pos += key.length;
var end = str.indexOf(")", pos);