cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Add blackberry VERSION file updating logic
Date Thu, 30 May 2013 02:37:37 GMT
Updated Branches:
  refs/heads/master b56eea513 -> 1f4d7b4b6


Add blackberry VERSION file updating logic


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

Branch: refs/heads/master
Commit: 1f4d7b4b61cdbf1b783cd4cfc1fec83ee06e3181
Parents: b56eea5
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed May 29 22:37:11 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed May 29 22:37:11 2013 -0400

----------------------------------------------------------------------
 coho |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/1f4d7b4b/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index d7fa27c..5391792 100755
--- a/coho
+++ b/coho
@@ -699,10 +699,16 @@ function createReleaseBranchCommand() {
             var versionFilePath = 'VERSION';
             if (repo.id == 'ios') {
                 versionFilePath = 'CordovaLib/VERSION';
+            } else if (repo.id == 'blackberry') {
+                versionFilePath = 'blackberry/VERSION';
             }
             if (fs.existsSync(versionFilePath)) {
                 console.log(repo.repoName + ': ' + 'Updating VERSION file.');
                 fs.writeFileSync(versionFilePath, version + '\n');
+                if (repo.id == 'blackberry') {
+                    versionFilePath = 'blackberry10/VERSION';
+                    fs.writeFileSync(versionFilePath, version + '\n');
+                }
                 if (repo.id == 'android') {
                     shjs.sed('-i', /cordovaVersion.*=.*;/, 'cordovaVersion = "' + version
+ '";', 'framework/src/org/apache/cordova/Device.java');
                 }


Mime
View raw message