incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [30/50] git commit: added xml folder for android
Date Tue, 10 Apr 2012 19:15:20 GMT
added xml folder for android


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/4bc7e542
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/tree/4bc7e542
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/diff/4bc7e542

Branch: refs/heads/master
Commit: 4bc7e54208322c1b752ba76c66356d666cf8757a
Parents: cc511ba
Author: stevengill <steve.gill@nitobi.com>
Authored: Mon Jan 30 17:08:41 2012 -0800
Committer: stevengill <steve.gill@nitobi.com>
Committed: Mon Jan 30 17:08:41 2012 -0800

----------------------------------------------------------------------
 coho              |   26 +++++++++++++++++---------
 test/tests.coffee |    8 ++++----
 2 files changed, 21 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/4bc7e542/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 9b58a75..c19f64e 100755
--- a/coho
+++ b/coho
@@ -60,7 +60,7 @@ function executeCommands(callback) {
     	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");
 
@@ -81,6 +81,7 @@ queueCommand("cd " + tempRepoDir + "/"+androiddir+" && ./bin/create");
 queueCommand("cd " + tempRepoDir + "/"+androiddir+" && cp -rp example " + androidReleaseLibDir
+ "/example");
 queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp libs/phonegap-"+VERSION+".jar
../" + androidReleaseLibDir);
 queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp assets/www/phonegap-"+VERSION+".js
../" + androidReleaseLibDir);
+queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp -r res/xml ../"
+ androidReleaseLibDir);
 
 //windows phone
 queueCommand("cd " + tempRepoDir + " && git clone "+windows+" && cd "+windowsdir+"
&& git fetch --tags && git checkout "+VERSION);
@@ -97,7 +98,7 @@ queueCommand("cd " + tempRepoDir + "/"+badadir+" && cp -r ./* "
+ badaReleaseLib
 //docs
 queueCommand("cd " + tempRepoDir + " && git clone "+docs+" && cd "+docsdir+"
&& git fetch --tags && git checkout "+VERSION);
 queueCommand("cd " + tempRepoDir + "/"+docsdir+" && ./bin/phonegap-docs &&
cp -r public " + releaseDocDir);
-*/
+
 //symbian
 fs.writeFile('depreciate.txt', 'PhoneGap-Symbian is being depreciated. You can find the last
available code at https://github.com/callback/callback-symbian.', function (err) {
   if (err) throw err;
@@ -106,15 +107,22 @@ queueCommand("mv depreciate.txt temp/release/lib/symbian/depreciate.txt")
 
 
 if (oldVer != undefined){
-	queueCommand("cd " + tempRepoDir + "/"+iosdir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
> changelog")
-	queueCommand("cd " + tempRepoDir + "/"+blackberrydir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" > changelog")
-	queueCommand("cd " + tempRepoDir + "/"+androiddir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" > changelog")
-	queueCommand("cd " + tempRepoDir + "/"+windowsdir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" > changelog")
-	queueCommand("cd " + tempRepoDir + "/"+webosdir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
> changelog")
-	queueCommand("cd " + tempRepoDir + "/"+badadir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
> changelog")
+	queueCommand("cd temp/release/ && touch changelog && echo 'ChangeLog' >
changelog")
+	queueCommand("echo 'ios' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+iosdir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
>> ../../release/changelog")
+	queueCommand("echo 'blackberry' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+blackberrydir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" >> ../../release/changelog")
+	queueCommand("echo 'android' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+androiddir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" >> ../../release/changelog")
+	queueCommand("echo 'windows' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+windowsdir+" && git shortlog --no-merges
"+oldVer+".."+VERSION+" >> ../../release/changelog")
+	queueCommand("echo 'webos' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+webosdir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
>> ../../release/changelog")
+	queueCommand("echo 'bada' >> temp/release/changelog")
+	queueCommand("cd " + tempRepoDir + "/"+badadir+" && git shortlog --no-merges "+oldVer+".."+VERSION+"
>> ../../release/changelog")
 }
 
 executeCommands(function(){
-	exec("cd temp/release && git archive master -o phonegap-"+VERSION+".zip", function(e,
stdout, stderr) {
+	exec("cd temp/ && zip -r phonegap-"+VERSION+".zip release/", function(e, stdout,
stderr) {
 	});
 });

http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/4bc7e542/test/tests.coffee
----------------------------------------------------------------------
diff --git a/test/tests.coffee b/test/tests.coffee
index e416a9f..95fae0e 100644
--- a/test/tests.coffee
+++ b/test/tests.coffee
@@ -1,5 +1,5 @@
-VERSION = '1.3.0'
-oldVersion = '1.2.0'
+VERSION = '1.4.0'
+oldVersion = '1.3.0'
 
 exports['sanity test'] = (test)-> 
     test.expect 1
@@ -257,11 +257,11 @@ exports['test if symbian depreciation file copied'] = (test)->
 
 exports['zip exists'] = (test)->
 	test.expect 1
-	test.ok require('path').existsSync("./temp/release/phonegap-#{ VERSION }.zip")
+	test.ok require('path').existsSync("./temp/phonegap-#{ VERSION }.zip")
 	test.done()
 	
 exports['test if zip is empty'] = (test)->
 	fs = require('fs')
 	test.expect 1
-	test.ok fs.statSync('./temp/release/phonegap-#{ VERSION }.zip').size isnt 0, 'zip created
too soon'
+	test.ok fs.statSync('temp/phonegap-#{VERSION}.zip').size isnt 0, 'zip created too soon'
 	test.done()


Mime
View raw message