diff options
author | Timothy Smith <timothy.smith@sun.com> | 2008-09-10 19:35:11 -0600 |
---|---|---|
committer | Timothy Smith <timothy.smith@sun.com> | 2008-09-10 19:35:11 -0600 |
commit | fb2c9d8232d62d7a1e1491fc9e34826ebd6739d9 (patch) | |
tree | af062b910ac75fea9867b300492fd274c33e389d /win | |
parent | 772cdf0000b3eb99ce3c91ad8b1a8765d7bf5b74 (diff) | |
parent | 09ea0a5b24e8457094d60841ac7192b43e3b523e (diff) | |
download | mariadb-git-fb2c9d8232d62d7a1e1491fc9e34826ebd6739d9.tar.gz |
Auto merge 5.1-build -> 5.1-bugteam
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]; |