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 2012/04/10 21:15:20 UTC
[41/50] git commit: removed symbian, updated repos to apache
removed symbian, updated repos to apache
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/commit/717507e5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/tree/717507e5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/diff/717507e5
Branch: refs/heads/master
Commit: 717507e5322946443b86189a4f39840a39d4dbe5
Parents: 64f482c
Author: stevengill <st...@nitobi.com>
Authored: Fri Jan 27 13:38:33 2012 -0800
Committer: stevengill <st...@nitobi.com>
Committed: Fri Jan 27 13:38:33 2012 -0800
----------------------------------------------------------------------
coho | 97 +++++++++++++++++++++++++++--------------------
test/tests.coffee | 27 +-------------
2 files changed, 57 insertions(+), 67 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/717507e5/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index f619195..c5ae732 100755
--- a/coho
+++ b/coho
@@ -1,8 +1,21 @@
#!/usr/bin/env node
VERSION = process.argv[2]
-console.log(process.argv[2])
-var util = require('util')
-var exec = require('child_process').exec
+var util = require('util')
+, exec = require('child_process').exec
+, ios = 'git://git.apache.org/incubator-cordova-ios.git'
+, blackberry = 'git://git.apache.org/incubator-cordova-blackberry-webworks.git'
+, android = 'git://git.apache.org/incubator-cordova-android.git'
+, windows = 'git://git.apache.org/incubator-cordova-wp7.git'
+, webos = 'git://git.apache.org/incubator-cordova-webos.git'
+, bada = 'git://git.apache.org/incubator-cordova-bada.git'
+, docs = 'git://git.apache.org/incubator-cordova-docs.git'
+, iosdir = 'incubator-cordova-ios'
+, blackberrydir = 'incubator-cordova-blackberry-webworks'
+, androiddir = 'incubator-cordova-android'
+, windowsdir = 'incubator-cordova-wp7'
+, webosdir = 'incubator-cordova-webos'
+, badadir = 'incubator-cordova-bada'
+, docsdir = 'incubator-cordova-docs'
var commandQueue = [],
child;
@@ -17,62 +30,64 @@ function queueCommand(cmd) {
function executeCommands(callback) {
var cmd = commandQueue.shift();
if (cmd) {
- child = exec(cmd, function(err, stdout, stderr) {
- if (err !== null) {
- console.log('ERROR!' + err);
- util.puts(stderr);
- } else {
- util.puts(stdout);
- executeCommands(callback);
- }
- });
- if (commandQueue.length === 0) {
- // Attach the callback to the child since this is the last command.
- child.on('exit', callback);
- }
+ child = exec(cmd, function(err, stdout, stderr) {
+ if (err !== null) {
+ console.log('ERROR!' + err);
+ util.puts(stderr);
+ executeCommands(callback);
+ } else {
+ util.puts(stdout);
+ executeCommands(callback);
+ }
+ });
+ if (commandQueue.length === 0) {
+ // Attach the callback to the child since this is the last command.
+ child.on('exit', callback);
+ }
} else {
- console.log('All done biatch');
+ console.log('All done');
}
}
queueCommand("rm -rf temp && mkdir temp && cd temp && mkdir repositories && mkdir release");
queueCommand("cd temp/release && mkdir lib && cd lib && mkdir ios && mkdir android && mkdir blackberry && mkdir windows && mkdir webos && mkdir symbian && mkdir bada");
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-ios.git && cd callback-ios && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-ios && make");
-queueCommand("cd temp/repositories/callback-ios/dist && cp -r PhoneGap-"+VERSION+".dmg ../../../release/lib/ios && cp -r PhoneGap-"+VERSION+".dmg.SHA1 ../../../release/lib/ios");
+
+//ios
+queueCommand("cd temp/repositories && git clone "+ios+" && cd "+iosdir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+iosdir+" && make");
+queueCommand("cd temp/repositories/"+iosdir+"/dist && cp -r PhoneGap-"+VERSION+".dmg ../../../release/lib/ios && cp -r PhoneGap-"+VERSION+".dmg.SHA1 ../../../release/lib/ios");
//blackberry
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-blackberry.git && cd callback-blackberry && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-blackberry && ant dist");
-queueCommand("cd temp/repositories/callback-blackberry/dist && cp -r ./* ../../../release/lib/blackberry");
+queueCommand("cd temp/repositories && git clone "+blackberry+" && cd "+blackberrydir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+blackberrydir+" && ant dist");
+queueCommand("cd temp/repositories/"+blackberrydir+"/dist && cp -r ./* ../../../release/lib/blackberry");
//android
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-android.git && cd callback-android && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-android && cp LICENSE ../../release/license && cp VERSION ../../release/version && cp README.md ../../release/lib/android");
-queueCommand("cd temp/repositories/callback-android && ./bin/create");
-queueCommand("cd temp/repositories/callback-android && cp -rp example ../../release/lib/android/example");
-queueCommand("cd temp/repositories/callback-android/example && cp libs/phonegap-"+VERSION+".jar ../../../release/lib/android/");
-queueCommand("cd temp/repositories/callback-android/example && cp assets/www/phonegap-"+VERSION+".js ../../../release/lib/android/");
+queueCommand("cd temp/repositories && git clone "+android+" && cd "+androiddir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+androiddir+" && cp LICENSE ../../release/license && cp VERSION ../../release/version && cp README.md ../../release/lib/android");
+queueCommand("cd temp/repositories/"+androiddir+" && ./bin/create");
+queueCommand("cd temp/repositories/"+androiddir+" && cp -rp example ../../release/lib/android/example");
+queueCommand("cd temp/repositories/"+androiddir+"/example && cp libs/phonegap-"+VERSION+".jar ../../../release/lib/android/");
+queueCommand("cd temp/repositories/"+androiddir+"/example && cp assets/www/phonegap-"+VERSION+".js ../../../release/lib/android/");
//windows phone
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-windows-phone.git && cd callback-windows-phone && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-windows-phone && cp -r ./* ../../release/lib/windows");
-
-//symbian
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-symbian.git && cd callback-symbian && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-symbian && cp -r ./* ../../release/lib/symbian");
+queueCommand("cd temp/repositories && git clone "+windows+" && cd "+windowsdir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+windowsdir+" && cp -r ./* ../../release/lib/windows");
//webos
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-webos.git && cd callback-webos && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-webos && cp -r ./* ../../release/lib/webos");
+queueCommand("cd temp/repositories && git clone "+webos+" && cd "+webosdir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+webosdir+" && cp -r ./* ../../release/lib/webos");
//bada
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-bada.git && cd callback-bada && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-bada && cp -r ./* ../../release/lib/bada");
+queueCommand("cd temp/repositories && git clone "+bada+" && cd "+badadir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+badadir+" && cp -r ./* ../../release/lib/bada");
//docs
-queueCommand("cd temp/repositories && git clone git@github.com:callback/callback-docs.git && cd callback-docs && git fetch --tags && git checkout "+VERSION);
-queueCommand("cd temp/repositories/callback-docs && ./bin/phonegap-docs && cp -r public ../../release/doc");
+queueCommand("cd temp/repositories && git clone "+docs+" && cd "+docsdir+" && git fetch --tags && git checkout "+VERSION);
+queueCommand("cd temp/repositories/"+docsdir+" && ./bin/phonegap-docs && cp -r public ../../release/doc");
+
+//symbian is being depricated.
+
executeCommands(function(){
exec("cd temp/release && git archive master -o phonegap-"+VERSION+".zip", function(e, stdout, stderr) {
http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/717507e5/test/tests.coffee
----------------------------------------------------------------------
diff --git a/test/tests.coffee b/test/tests.coffee
index 1ce4139..718ef4a 100644
--- a/test/tests.coffee
+++ b/test/tests.coffee
@@ -54,11 +54,6 @@ exports['creating windows directory']=(test)->
test.ok require('path').existsSync("./temp/release/lib/windows")
test.done()
-exports['creating symbian directory']=(test)->
- test.expect 1
- test.ok require('path').existsSync("./temp/release/lib/symbian")
- test.done()
-
exports['creating webos directory']=(test)->
test.expect 1
test.ok require('path').existsSync("./temp/release/lib/webos")
@@ -92,12 +87,7 @@ exports['confirm windows clone worked'] = (test)->
exports['confirm webos clone worked'] = (test)->
test.expect 1
test.ok require('path').existsSync("./temp/repositories/callback-webos/VERSION")
- test.done()
-
-exports['confirm symbian clone worked'] = (test)->
- test.expect 1
- test.ok require('path').existsSync("./temp/repositories/callback-symbian/VERSION")
- test.done()
+ test.done()
exports['confirm bada clone worked'] = (test)->
test.expect 1
@@ -149,16 +139,6 @@ exports['check windows version number'] = (test)->
test.ok true, "VERSION file matches release version"
test.done()
-exports['check symbian version number'] = (test)->
- test.expect 1
- fs = require('fs')
- if fs.readFileSync('./temp/repositories/callback-symbian/VERSION', 'ascii') != VERSION
- test.ok false, "VERSION file doesn't match release version"
- test.done()
- else
- test.ok true, "VERSION file matches release version"
- test.done()
-
exports['check webos version number'] = (test)->
test.expect 1
fs = require('fs')
@@ -249,11 +229,6 @@ exports['windows copied into release'] = (test)->
test.ok require('path').existsSync("./temp/release/lib/windows/PhoneGapStarter.zip")
test.done()
-exports['symbian copied into release'] = (test)->
- test.expect 1
- test.ok require('path').existsSync("./temp/release/lib/symbian/VERSION")
- test.done()
-
exports['webos copied into release'] = (test)->
test.expect 1
test.ok require('path').existsSync("./temp/release/lib/webos/VERSION")