cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject cordova-coho git commit: CB-8760 Added support for updating 'windows' and 'browser' platform versions (close #67)
Date Fri, 27 Mar 2015 14:12:36 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master 5a07ec0c7 -> 8f3bc69d8


CB-8760 Added support for updating 'windows' and 'browser' platform versions (close #67)


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/8f3bc69d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/8f3bc69d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/8f3bc69d

Branch: refs/heads/master
Commit: 8f3bc69d86efc1ef1f14e61707e2eb11da482432
Parents: 5a07ec0
Author: Tim Barham <tim.barham@microsoft.com>
Authored: Fri Mar 27 14:51:10 2015 +1000
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Mar 27 10:12:07 2015 -0400

----------------------------------------------------------------------
 src/platform-release.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/8f3bc69d/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index fc6e50c..0fa643b 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -127,10 +127,12 @@ function *updateRepoVersion(repo, version) {
             shelljs.sed('-i', /VERSION.*=.*/, 'VERSION="' + version + '"', path.join('bin',
'templates', 'scripts', 'cordova', 'version'));
         } else if (repo.id == 'blackberry') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin',
'templates', 'project','cordova', 'lib', 'version.js'));
-        } else if (repo.id == 'firefoxos') {
+        } else if (repo.id == 'firefoxos' || repo.id == 'browser') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin',
'templates', 'project','cordova', 'version'));
         } else if (repo.id == 'ubuntu') {
             shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin',
'build', 'version'));
+        } else if (repo.id == 'windows') {
+            shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('template',
'cordova', 'version'));
         }
         shelljs.config.fatal = false;
         if (!(yield gitutil.pendingChangesExist())) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message