You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/01/31 23:03:46 UTC
[7/10] git commit: setting ios scripts to executable
setting ios scripts to executable
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/872f71e5
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/872f71e5
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/872f71e5
Branch: refs/heads/master
Commit: 872f71e55516dcdfc568a8c2b3b2aa7df91184ed
Parents: 32dcdc7
Author: Fil Maj <ma...@gmail.com>
Authored: Thu Jan 31 11:32:35 2013 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Thu Jan 31 11:32:35 2013 -0800
----------------------------------------------------------------------
bootstrap.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/872f71e5/bootstrap.js
----------------------------------------------------------------------
diff --git a/bootstrap.js b/bootstrap.js
index 87baff8..c4f403b 100644
--- a/bootstrap.js
+++ b/bootstrap.js
@@ -26,6 +26,7 @@ var util = require('./src/util'),
b_parser = require('./src/metadata/blackberry_parser'),
i_parser = require('./src/metadata/ios_parser'),
path = require('path'),
+ fs = require('fs'),
shell = require('shelljs'),
platforms = require('./platforms');
@@ -66,6 +67,21 @@ platforms.forEach(function(platform) {
console.error('ERROR! Could not create a native ' + platform + ' project test fixture. See below for error output.');
console.error(output);
} else {
+ // set permissions on executables
+ switch (platform) {
+ case 'android':
+ break;
+ case 'ios':
+ var scripts_path = path.join(fix_path, 'cordova');
+ var scripts = fs.readdirSync(scripts_path);
+ scripts.forEach(function(script) {
+ var script_path = path.join(scripts_path, script);
+ shell.chmod('+x', script_path);
+ });
+ break;
+ case 'blackberry':
+ break;
+ };
var platformDir = path.join(platformsDir, platform);
shell.mkdir('-p', platformDir);
shell.cp('-rf', path.join(fix_path, '*'), platformDir);