diff options
author | Kent Boortz <kent@kent-amd64> | 2008-08-29 17:43:36 +0200 |
---|---|---|
committer | Kent Boortz <kent@kent-amd64> | 2008-08-29 17:43:36 +0200 |
commit | d045d5bfc8b72418b7ae10ea1b378b2607f15426 (patch) | |
tree | 6f5f53b5e4fb93b2f048797d9123f55e0f45bab0 /win | |
parent | 00629f57456a0239167d8dff93a5f7000bdbebeb (diff) | |
parent | c978058b08fe613e805f3fb306c3f0f37c035368 (diff) | |
download | mariadb-git-d045d5bfc8b72418b7ae10ea1b378b2607f15426.tar.gz |
Merge from mysql-5.0-build
Diffstat (limited to 'win')
-rwxr-xr-x | win/create_manifest.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/win/create_manifest.js b/win/create_manifest.js index dec8f6e62e2..dbdd83588c5 100755 --- a/win/create_manifest.js +++ b/win/create_manifest.js @@ -31,7 +31,17 @@ try var end= supp_version.indexOf("-"); if (end == -1) end= supp_version.length; var app_version= supp_version.substring(0, end); - app_version+= ".0"; + var fourth_element= 0; + if(app_version.match(/[a-z]$/)) { + fourth_element+= (1 + app_version.charCodeAt(end-1) - "a".charCodeAt(0)); + app_version= app_version.substring(0,--end); + } + if(app_version.match(/sp[1-9]$/)) { + fourth_element+= 100*(app_version.charCodeAt(end-1) - "0".charCodeAt(0)); + app_version= app_version.substring(0, end-3); + end-= 3; + } + app_version+= "." + fourth_element; break; case "arch": var app_arch= parts[1]; |