cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [1/3] git commit: Delete upload-release command. It's no longer used.
Date Thu, 24 Apr 2014 14:16:08 GMT
Repository: cordova-coho
Updated Branches:
  refs/heads/master f31cdef1f -> c114399a7


Delete upload-release command. It's no longer used.


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

Branch: refs/heads/master
Commit: 5593a15a2365e43e7e83e76944ad3706f564a38d
Parents: f31cdef
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed Apr 23 21:29:33 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed Apr 23 21:29:33 2014 -0400

----------------------------------------------------------------------
 coho | 56 --------------------------------------------------------
 1 file changed, 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/5593a15a/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 0facc81..8261fb6 100755
--- a/coho
+++ b/coho
@@ -797,58 +797,6 @@ function createReleaseCommand(argv) {
     process.exit(0);
 }
 
-function apacheUpload(){
-    var opt = registerRepoFlag(optimist)
-    opt = opt
-        .options('new-version', {
-            desc: 'The version to release. E.g. 3.0.0',
-            demand: true
-         })
-        .options('prev-version', {
-            desc: 'The previous release version (used to remove old version from download
page)',
-            demand: false
-         });
-
-    opt = registerHelpFlag(opt);
-    var argv = opt
-        .usage('Uploads the release to the apache servers and optionally removes previous
release files.\n' +
-            'This involves:\n' +
-            '    Checking out Apache Cordova release repository if it does not already exist.\n'
+
-            '    Updating the repositoryvia svn update\n' +
-            '    Optionally removing old release artifacts\n' +
-            '    Copying in new release artifacts\n' +
-            '    Svn committing new release artifacts to the apache repo\n' +
-            '\n' +
-            'Usage: $0 upload-release --new-version 3.0.0 [--prev-version 2.9.0]')
-        .argv;
-
-    if (argv.h) {
-        optimist.showHelp();
-        process.exit(1);
-    }
-
-    if (shjs.test('-d','./apachecordova')){
-        print('apachecordova directory exists');
-        execHelper("cd apachecordova && svn update");
-
-    } else {
-        //grab apachecordova repo off apache svn servers
-        execHelper("svn checkout https://dist.apache.org/repos/dist/release/cordova apachecordova")
-    }
-
-    if (argv['prev-version'] && shjs.test('-d','./apachecordova/cordova-'+argv['prev-version']+'-src.zip')){
-        //remove old version
-        print('removing previous release from apache servers')
-        execHelper("cd apachecordova && svn delete cordova-"+argv['prev-version']+"-src.*");
-    }
-
-    print('copy over and commit new release files')
-    execHelper("cp -r releases/cordova-"+argv['new-version']+"/cordova-"+argv['new-version']+"-src*
apachecordova/");
-    execHelper("cd apachecordova && svn add cordova-"+argv['new-version']+"-src*");
-    print("svn commit -m 'updated to "+argv['new-version']+"'")
-    execHelper("cd apachecordova && svn commit -m 'updated to "+opt.argv['new-version']+"'");
-}
-
 function computeReposFromFlag(flagValue) {
     var values = Array.isArray(flagValue) ? flagValue : [flagValue];
     var ret = [];
@@ -2074,10 +2022,6 @@ function main() {
             desc: 'Prints out tags & hashes for the given repos. Used in VOTE emails.',
             entryPoint: printTagsCommand
         }, {
-            name: 'upload-release',
-            desc: 'Uploads a signed .zip to Cordova\'s webserver.',
-            entryPoint: apacheUpload
-        }, {
             name: 'last-week',
             desc: 'Prints out git logs of things that happened last week.',
             entryPoint: lastWeekCommand


Mime
View raw message