You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/09/25 03:18:31 UTC
[04/13] git commit: copied over changes in cadence process to
platforms process
copied over changes in cadence process to platforms process
Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/0b8755fe
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/0b8755fe
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/0b8755fe
Branch: refs/heads/master
Commit: 0b8755fe4cf32b2b4e2dd7826975364bc1c684f9
Parents: 59db742
Author: Steven Gill <st...@gmail.com>
Authored: Wed Aug 27 14:52:18 2014 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Wed Sep 24 17:17:04 2014 -0700
----------------------------------------------------------------------
src/platform-release.js | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/0b8755fe/src/platform-release.js
----------------------------------------------------------------------
diff --git a/src/platform-release.js b/src/platform-release.js
index 20c0a19..5a54672 100644
--- a/src/platform-release.js
+++ b/src/platform-release.js
@@ -121,12 +121,16 @@ function *updateRepoVersion(repo, version) {
fs.writeFileSync(versionFilePath, version + '\n');
});
shelljs.config.fatal = true;
- if (repo.id == 'android') {
+ if (repo.id == 'android' || repo.id == 'amazon-fireos') {
shelljs.sed('-i', /CORDOVA_VERSION.*=.*;/, 'CORDOVA_VERSION = "' + version + '";', path.join('framework', 'src', 'org', 'apache', 'cordova', 'CordovaWebView.java'));
shelljs.sed('-i', /VERSION.*=.*;/, 'VERSION = "' + version + '";', path.join('bin', 'templates', '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') {
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'));
+ }
shelljs.config.fatal = false;
if (!(yield gitutil.pendingChangesExist())) {
print('VERSION file was already up-to-date.');