incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [6/50] git commit: Changed around how notice, readme, version, disclaimer are packaged as well as added cleanup code to remove git files when building with coho
Date Tue, 10 Apr 2012 19:15:19 GMT
Changed around how notice, readme, version, disclaimer are packaged as well as added cleanup
code to remove git files when building with coho


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

Branch: refs/heads/master
Commit: 496417345e7e5f1344bca24a7f80ead7b32df736
Parents: 43cb37b
Author: Tim Kim <timk@adobe.com>
Authored: Tue Mar 27 16:45:22 2012 -0700
Committer: Tim Kim <timk@adobe.com>
Committed: Tue Mar 27 16:45:22 2012 -0700

----------------------------------------------------------------------
 coho |   38 +++++++++++++++++++++++++++-----------
 1 files changed, 27 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/49641734/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index 2dc9160..f5a4945 100755
--- a/coho
+++ b/coho
@@ -21,8 +21,8 @@ var util           = require('util')
 ,   iosReleaseBinDir = ' ../../../release/bin/ios'
 , blackberryReleaseBinDir = '../../../release/bin/blackberry'
 , androidReleaseBinDir = '../../release/bin/android'
-, androidReleaseLicense = '../../release/license'
-, androidReleaseVersion = '../../release/version'
+, androidReleaseLicense = '../../release/bin/android/LICENSE'
+, androidReleaseVersion = '../../release/bin/android/VERSION'
 , windowsReleaseBinDir = '../../release/bin/windows'
 , webosReleaseBinDir = '../../release/bin/webos'
 , badaReleaseBinDir = '../../release/bin/bada'
@@ -117,13 +117,16 @@ fs.writeFile('depreciate.txt', 'PhoneGap-Symbian is being depreciated.
You can f
 
 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")
+// keys into top level directory
+queueCommand("echo 'Moving KEYS file to release'");
+queueCommand("cp KEYS temp/release/KEYS")
 
-// notice and license
-queueCommand("cp bin/NOTICE temp/release/NOTICE");
-queueCommand("cp bin/LICENSE temp/release/LICENSE");
+// notice, license, readme, disclaimer file to be put into official release artifact
+queueCommand("echo 'Moving notice, license, readme, and disclaimer files to release artifact'");
+queueCommand("cp bin/README.md temp/release/src/README.MD")
+queueCommand("cp bin/NOTICE temp/release/src/NOTICE");
+queueCommand("cp bin/LICENSE temp/release/src/LICENSE");
+queueCommand("cp bin/DISCLAIMER temp/release/src/DISCLAIMER");
 
 if (oldVer != undefined){
 	queueCommand("cd temp/release/ && touch changelog && echo 'ChangeLog' >
changelog")
@@ -145,21 +148,34 @@ if (oldVer != undefined){
 var cordovaBinZip = "cordova-"+VERSION+"-incubating-bin.zip";
 var cordovaBinAsc = cordovaBinZip+".asc";
 var cordovaBinMd5 = cordovaBinZip+".md5";
+var cordovaBinSha = cordovaBinZip+".sha";
 
 var cordovaDocZip = "cordova-"+VERSION+"-incubating-doc.zip";
 var cordovaDocAsc = cordovaDocZip+".asc";
 var cordovaDocMd5 = cordovaDocZip+".md5";
+var cordovaDocSha = cordovaDocZip+".sha";
 
 var cordovaSrcZip = "cordova-"+VERSION+"-incubating-src.zip";
 var cordovaSrcAsc = cordovaSrcZip+".asc";
 var cordovaSrcMd5 = cordovaSrcZip+".md5";
+var cordovaSrcSha = cordovaSrcZip+".sha";
 
-queueCommand("cd temp/release/bin && zip -r "+ cordovaBinZip +" * && gpg
--armor --output "+cordovaBinAsc+" --detach-sig "+cordovaBinZip+" && gpg --print-md
MD5 "+cordovaBinZip+" > " + cordovaBinMd5);
-queueCommand("cd temp/release/doc && zip -r "+cordovaDocZip+" * && gpg --armor
--output "+cordovaDocAsc+" --detach-sig "+cordovaDocZip+" && gpg --print-md MD5 "+cordovaDocZip+"
> " + cordovaDocMd5);
-queueCommand("cd temp/release/src && zip -r "+cordovaSrcZip+" * && gpg --armor
--output "+cordovaSrcAsc+" --detach-sig "+cordovaSrcZip+" && gpg --print-md MD5 "+cordovaSrcZip+"
> " + cordovaSrcMd5);
+// remove git files before we zip
+queueCommand("echo 'Cleaning up .git files from repositories before zipping em'");
+queueCommand("cd temp/release/src && find `pwd` -name .git -type d -print0 | xargs
-0 rm -r");
+queueCommand("cd temp/release/src && find `pwd` -name .git* -type f -print0 | xargs
-0 rm -r");
 
+queueCommand("echo 'Zipping and signing bin'");
+queueCommand("cd temp/release/bin && zip -rq "+ cordovaBinZip +" * && gpg
--armor --output "+cordovaBinAsc+" --detach-sig "+cordovaBinZip+" && gpg --print-md
MD5 "+cordovaBinMd5+" > " + cordovaBinMd5 +" && gpg --print-md SHA512 " + cordovaBinZip
+ " > " + cordovaBinSha);
+
+queueCommand("echo 'Zipping and signing doc'");
+queueCommand("cd temp/release/doc && zip -rq "+ cordovaDocZip +" * && gpg
--armor --output "+cordovaDocAsc+" --detach-sig "+cordovaDocZip+" && gpg --print-md
MD5 "+cordovaDocZip+" > " + cordovaDocMd5 +" && gpg --print-md SHA512 " + cordovaDocZip
+ " > " + cordovaDocSha);
+
+queueCommand("echo 'Zipping and signing src'");
+queueCommand("cd temp/release/src && zip -rq "+ cordovaSrcZip +" * && gpg
--armor --output "+cordovaSrcAsc+" --detach-sig "+cordovaSrcZip+" && gpg --print-md
MD5 "+cordovaSrcZip+" > " + cordovaSrcMd5 +" && gpg --print-md SHA512 " + cordovaSrcZip
+ " > " + cordovaSrcSha);
 
 // clean up
+queueCommand("echo 'Final clean up'");
 queueCommand("cd temp/release/bin && ls | grep -v "+cordovaBinZip+" | xargs rm -r");
 queueCommand("cd temp/release/doc && ls | grep -v "+cordovaDocZip+" | xargs rm -r");
 queueCommand("cd temp/release/src && ls | grep -v "+cordovaSrcZip+" | xargs rm -r");


Mime
View raw message