summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorKent Boortz <kent.boortz@sun.com>2010-02-03 14:52:11 +0100
committerKent Boortz <kent.boortz@sun.com>2010-02-03 14:52:11 +0100
commit21a6569952dfa8afb65e163197f9aec2f53eace8 (patch)
tree0d9847783344200f4a3af8788b614b2f0f008acc /win
parent90f7cfa6ac0c3de176cbd6e0e64431b2c8e2e128 (diff)
downloadmariadb-git-21a6569952dfa8afb65e163197f9aec2f53eace8.tar.gz
Adjuster the parsing of "configure.in" version number line
Diffstat (limited to 'win')
-rw-r--r--win/configure.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/configure.js b/win/configure.js
index fc5c548c983..38fa8e7afeb 100644
--- a/win/configure.js
+++ b/win/configure.js
@@ -140,11 +140,11 @@ function GetValue(str, key)
function GetVersion(str)
{
- var key = "AM_INIT_AUTOMAKE(mysql, ";
- var pos = str.indexOf(key); //5.0.6-beta)
+ var key = "AC_INIT([MySQL Server], [";
+ var pos = str.indexOf(key);
if (pos == -1) return null;
pos += key.length;
- var end = str.indexOf(")", pos);
+ var end = str.indexOf("]", pos);
if (end == -1) return null;
return str.substring(pos, end);
}