cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject git commit: CB-5234: fixed ffos update script
Date Tue, 12 Nov 2013 23:26:46 GMT
Updated Branches:
  refs/heads/3.2.x ed3879875 -> d7b8b6a99


CB-5234: fixed ffos update script


Project: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/commit/d7b8b6a9
Tree: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/tree/d7b8b6a9
Diff: http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/diff/d7b8b6a9

Branch: refs/heads/3.2.x
Commit: d7b8b6a99332146e163d41767104bc3969213e25
Parents: ed38798
Author: Steven Gill <stevengill97@gmail.com>
Authored: Tue Nov 12 15:23:27 2013 -0800
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Tue Nov 12 15:26:09 2013 -0800

----------------------------------------------------------------------
 bin/lib/update.js | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/d7b8b6a9/bin/lib/update.js
----------------------------------------------------------------------
diff --git a/bin/lib/update.js b/bin/lib/update.js
index 31c92b0..8f674a1 100755
--- a/bin/lib/update.js
+++ b/bin/lib/update.js
@@ -22,7 +22,7 @@
 var shell = require('shelljs'),
     path  = require('path'),
     fs    = require('fs'),
-    ROOT    = path.join(__dirname, '..', '..');
+    ROOT  = path.join(__dirname, '..', '..');
 
 function setShellFatal(value, func) {
     var oldVal = shell.config.fatal;
@@ -36,22 +36,19 @@ function copyJs(projectPath) {
 }
 
 function copyScripts(projectPath) {
-    var srcScriptsDir = path.join(ROOT, 'bin', 'templates', 'scripts', 'cordova');
+    var srcScriptsDir = path.join(ROOT, 'bin', 'templates', 'project', 'cordova');
     var destScriptsDir = path.join(projectPath, 'cordova');
     // Delete old scripts directory.
     shell.rm('-rf', destScriptsDir);
     // Copy in the new ones.
     shell.cp('-r', srcScriptsDir, projectPath);
-    /*
-    shell.cp(path.join(ROOT, 'bin', 'check_reqs'), path.join(destScriptsDir, 'check_reqs'));
     // Make sure they are executable.
     shell.find(destScriptsDir).forEach(function(entry) {
         shell.chmod(755, entry);
-    });*/
+    });
 }
 
 exports.updateProject = function(projectPath) {
-    console.log("ROOT: " + ROOT);
     var version = fs.readFileSync(path.join(ROOT, 'VERSION'), 'utf-8').trim();
     setShellFatal(true, function() {
         copyJs(projectPath);


Mime
View raw message