summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorTimothy Smith <timothy.smith@sun.com>2008-09-10 19:34:17 -0600
committerTimothy Smith <timothy.smith@sun.com>2008-09-10 19:34:17 -0600
commitcafa5594d37995c2dcd5d20b7d5b8155b3fff166 (patch)
treec843961cd0cff8a1450e7ce9528564e0ca7d0dad /win
parentbed8cec4854c3a4447961f389a2ff602374c9107 (diff)
parent92d3010dc1bb4b20c020f7e41850fdebf9cb05c2 (diff)
downloadmariadb-git-cafa5594d37995c2dcd5d20b7d5b8155b3fff166.tar.gz
Auto merge 5.0-build -> 5.0-bugteam
Diffstat (limited to 'win')
-rwxr-xr-xwin/create_manifest.js12
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];