incubator-callback-commits mailing list archives

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


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

Branch: refs/heads/master
Commit: d3ebe8ad2e1ae6f7219347ebf89b5b9972535d14
Parents: 717507e
Author: stevengill <steve.gill@nitobi.com>
Authored: Fri Jan 27 14:17:51 2012 -0800
Committer: stevengill <steve.gill@nitobi.com>
Committed: Fri Jan 27 14:17:51 2012 -0800

----------------------------------------------------------------------
 coho              |    9 +++++++--
 test/tests.coffee |    5 +++++
 2 files changed, 12 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-coho/blob/d3ebe8ad/coho
----------------------------------------------------------------------
diff --git a/coho b/coho
index c5ae732..293df14 100755
--- a/coho
+++ b/coho
@@ -2,6 +2,7 @@
 VERSION = process.argv[2]
 var util           = require('util')
 ,   exec           = require('child_process').exec
+,   fs			   = require('fs')
 ,   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'
@@ -86,8 +87,12 @@ queueCommand("cd temp/repositories/"+badadir+" && cp -r ./* ../../release/lib/ba
 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.
-
+//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;
+  console.log('It\'s saved!');
+});
+queueCommand("mv depreciate.txt temp/release/lib/symbian/depreciate.txt")
 
 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/d3ebe8ad/test/tests.coffee
----------------------------------------------------------------------
diff --git a/test/tests.coffee b/test/tests.coffee
index 718ef4a..f0d7fce 100644
--- a/test/tests.coffee
+++ b/test/tests.coffee
@@ -248,6 +248,11 @@ exports['version file copied into release'] = (test)->
 	test.expect 1
 	test.ok require('path').existsSync("./temp/release/version")
 	test.done()
+	
+exports['test if symbian depreciation file copied'] = (test)->
+	test.expect 1
+	test.ok require('path').existsSync("./temp/release/lib/symbian/depreciate.txt")
+	test.done()
 
 exports['zip exists'] = (test)->
 	test.expect 1


Mime
View raw message