incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [15/50] git commit: updated coho for bin src doc release structure
Date Tue, 10 Apr 2012 19:15:20 GMT
updated coho for bin src doc release structure


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

Branch: refs/heads/master
Commit: d352ff84721c58d47eb2e760daad89cd59e985c9
Parents: 876967b
Author: Tim Kim <timk@adobe.com>
Authored: Wed Mar 14 14:32:10 2012 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Tue Mar 20 17:17:51 2012 -0700

----------------------------------------------------------------------
 coho |   53 +++++++++++++++++++++++++++++++----------------------
 1 files changed, 31 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/d352ff84/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 25dea19..02e2f1f 100755
--- a/coho
+++ b/coho
@@ -18,15 +18,17 @@ var util           = require('util')
 ,	badadir	       = 'incubator-cordova-bada'
 ,   docsdir        = 'incubator-cordova-docs'
 ,   tempRepoDir    = 'temp/repositories'
-,   iosReleaseLibDir = ' ../../../release/lib/ios'
-, blackberryReleaseLibDir = '../../../release/lib/blackberry'
-, androidReleaseLibDir = '../../release/lib/android'
+,   iosReleaseBinDir = ' ../../../release/bin/ios'
+, blackberryReleaseBinDir = '../../../release/bin/blackberry'
+, androidReleaseBinDir = '../../release/bin/android'
 , androidReleaseLicense = '../../release/license'
 , androidReleaseVersion = '../../release/version'
-, windowsReleaseLibDir = '../../release/lib/windows'
-, webosReleaseLibDir = '../../release/lib/webos'
-, badaReleaseLibDir = '../../release/lib/bada'
+, windowsReleaseBinDir = '../../release/bin/windows'
+, webosReleaseBinDir = '../../release/bin/webos'
+, badaReleaseBinDir = '../../release/bin/bada'
 , releaseDocDir = '../../release/doc'
+, releaseBinDir = '../release/bin'
+, releaseSrcDir = '../release/src'
 , oldVer = process.argv[3];
 
 var commandQueue = [],
@@ -62,41 +64,47 @@ function executeCommands(callback) {
 }
 
 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/release && mkdir bin && mkdir src && cd bin
&& mkdir ios && mkdir android && mkdir blackberry && mkdir
windows && mkdir webos && mkdir symbian && mkdir bada");
 
 //ios
 queueCommand("cd " + tempRepoDir + " && git clone "+ios+" && cd "+iosdir+"
&& git fetch --tags && git checkout "+VERSION);
+queueCommand("cd " + tempRepoDir + " && cp -r " + iosdir + " " + releaseSrcDir);
 queueCommand("cd " + tempRepoDir + "/"+iosdir+" && make");
-queueCommand("cd " + tempRepoDir + "/"+iosdir+"/dist && cp -r Cordova-"+VERSION+".dmg
" + iosReleaseLibDir + " && cp -r Cordova-"+VERSION+".dmg.SHA1 " + iosReleaseLibDir);
-queueCommand("cd " + tempRepoDir + "/"+iosdir+" && cp NOTICE ../../release/lib/ios");
+queueCommand("cd " + tempRepoDir + "/"+iosdir+"/dist && cp -r Cordova-"+VERSION+".dmg
" + iosReleaseBinDir + " && cp -r Cordova-"+VERSION+".dmg.SHA1 " + iosReleaseBinDir);
+queueCommand("cd " + tempRepoDir + "/"+iosdir+" && cp NOTICE ../../release/bin/ios");
 
 //blackberry
 queueCommand("cd " + tempRepoDir + " && git clone "+blackberry+" && cd "+blackberrydir+"
&& git fetch --tags && git checkout "+VERSION);
+queueCommand("cd " + tempRepoDir + " && cp -r " + blackberrydir + " " + releaseSrcDir);
 queueCommand("cd " + tempRepoDir + "/"+blackberrydir+" && ant dist");
-queueCommand("cd " + tempRepoDir + "/"+blackberrydir+"/dist && cp -r ./* " + blackberryReleaseLibDir);
-queueCommand("cd " + tempRepoDir + "/"+blackberrydir+" && cp NOTICE ../../release/lib/blackberry");
+queueCommand("cd " + tempRepoDir + "/"+blackberrydir+"/dist && cp -r ./* " + blackberryReleaseBinDir);
+queueCommand("cd " + tempRepoDir + "/"+blackberrydir+" && cp NOTICE ../../release/bin/blackberry");
 
 //android
 queueCommand("cd " + tempRepoDir + " && git clone "+android+" && cd "+androiddir+"
&& git fetch --tags && git checkout "+VERSION);
-queueCommand("cd " + tempRepoDir + "/"+androiddir+" && cp LICENSE " + androidReleaseLicense
+ " && cp VERSION " + androidReleaseVersion + " && cp README.md " + androidReleaseLibDir
+ " && cp NOTICE " + androidReleaseLibDir);
+queueCommand("cd " + tempRepoDir + " && cp -r " + androiddir + " " + releaseSrcDir);
+queueCommand("cd " + tempRepoDir + "/"+androiddir+" && cp LICENSE " + androidReleaseLicense
+ " && cp VERSION " + androidReleaseVersion + " && cp README.md " + androidReleaseBinDir
+ " && cp NOTICE " + androidReleaseBinDir);
 queueCommand("cd " + tempRepoDir + "/"+androiddir+" && ant clean");
 queueCommand("cd " + tempRepoDir + "/"+androiddir+" && ./bin/create");
-queueCommand("cd " + tempRepoDir + "/"+androiddir+" && cp -rp example " + androidReleaseLibDir
+ "/example");
-queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp libs/cordova-"+VERSION+".jar
../" + androidReleaseLibDir);
-queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp assets/www/cordova-"+VERSION+".js
../" + androidReleaseLibDir);
-queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp -r res/xml ../"
+ androidReleaseLibDir);
+queueCommand("cd " + tempRepoDir + "/"+androiddir+" && cp -rp example " + androidReleaseBinDir
+ "/example");
+queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp libs/cordova-"+VERSION+".jar
../" + androidReleaseBinDir);
+queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp assets/www/cordova-"+VERSION+".js
../" + androidReleaseBinDir);
+queueCommand("cd " + tempRepoDir + "/"+androiddir+"/example && cp -r res/xml ../"
+ androidReleaseBinDir);
 
 //windows phone
 queueCommand("cd " + tempRepoDir + " && git clone "+windows+" && cd "+windowsdir+"
&& git fetch --tags && git checkout "+VERSION);
-queueCommand("cd " + tempRepoDir + "/"+windowsdir+" && cp -r ./* " + windowsReleaseLibDir);
+queueCommand("cd " + tempRepoDir + " && cp -r " + windowsdir + " " + releaseSrcDir);
+queueCommand("cd " + tempRepoDir + "/"+windowsdir+" && cp -r ./* " + windowsReleaseBinDir);
 
 //webos
 queueCommand("cd " + tempRepoDir + " && git clone "+webos+" && cd "+webosdir+"
&& git fetch --tags && git checkout "+VERSION);
-queueCommand("cd " + tempRepoDir + "/"+webosdir+" && cp -r ./* " + webosReleaseLibDir);
+queueCommand("cd " + tempRepoDir + " && cp -r " + webosdir + " " + releaseSrcDir);
+queueCommand("cd " + tempRepoDir + "/"+webosdir+" && cp -r ./* " + webosReleaseBinDir);
 
 //bada
 queueCommand("cd " + tempRepoDir + " && git clone "+bada+" && cd "+badadir+"
&& git fetch --tags && git checkout "+VERSION);
-queueCommand("cd " + tempRepoDir + "/"+badadir+" && cp -r ./* " + badaReleaseLibDir);
+queueCommand("cd " + tempRepoDir + " && cp -r " + badadir + " " + releaseSrcDir);
+queueCommand("cd " + tempRepoDir + "/"+badadir+" && cp -r ./* " + badaReleaseBinDir);
 
 //docs
 queueCommand("cd " + tempRepoDir + " && git clone "+docs+" && cd "+docsdir+"
&& git fetch --tags && git checkout "+VERSION);
@@ -106,11 +114,12 @@ queueCommand("cd " + tempRepoDir + "/"+docsdir+" && ./bin/phonegap-docs
&& cp -r
 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;
 });
-queueCommand("mv depreciate.txt temp/release/lib/symbian/depreciate.txt");
+
+queueCommand("mv depreciate.txt temp/release/bin/symbian/depreciate.txt")
 
 //readme
-queueCommand("cp bin/README.md temp/release/README.md");
-queueCommand("cp KEYS temp/release/KEYS");
+queueCommand("cp bin/README.md temp/release/readme.md")
+queueCommand("cp KEYS temp/release/keys")
 
 // notice and license
 queueCommand("cp bin/NOTICE temp/release/NOTICE");


Mime
View raw message