cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject git commit: fixed permission issue when copying cordova scripts
Date Sat, 24 Aug 2013 03:00:31 GMT
Updated Branches:
  refs/heads/master fd95f0b98 -> 31cd2b5cc


fixed permission issue when copying cordova scripts


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

Branch: refs/heads/master
Commit: 31cd2b5ccf0d297c2e2c26396aec32a4d982e5d0
Parents: fd95f0b
Author: Steven Gill <stevengill97@gmail.com>
Authored: Fri Aug 23 20:00:28 2013 -0700
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Fri Aug 23 20:00:28 2013 -0700

----------------------------------------------------------------------
 bin/create | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-firefoxos/blob/31cd2b5c/bin/create
----------------------------------------------------------------------
diff --git a/bin/create b/bin/create
index fc66fd0..21e1eb7 100755
--- a/bin/create
+++ b/bin/create
@@ -75,7 +75,11 @@ function main(project_path,package_name,project_name){
     shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'www'), project_path);
     
     //copy cordova js file
-    shjs.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'www'));
  
+    shjs.cp('-r', path.join(ROOT, 'cordova-lib', 'cordova.js'), path.join(project_path,'www'));
 
+
+    //copy cordova folder
+    shjs.cp('-r', path.join(ROOT, 'bin', 'templates', 'project', 'cordova'), project_path);

+    shjs.chmod(755, path.join(project_path, 'cordova', 'run'));
 }
 
 function help(){


Mime
View raw message