Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CB-5266 update create.js to copy all shell scripts regardless of host…
… platform
  • Loading branch information
jsoref authored and bryanhiggins committed Nov 4, 2013
1 parent b74247d commit 222d7550ffba096cde6c2049f894a75405da09b5
Showing 1 changed file with 4 additions and 10 deletions.
@@ -122,22 +122,16 @@ function copyFilesToProject() {
utils.copyFile(path.join(BIN_DIR, "lib", "signing-utils.js"), path.join(project_path, "cordova", "lib"));

// copy repo level init script to project
if (utils.isWindows()) {
utils.copyFile(path.join(BIN_DIR, "init.bat"), path.join(project_path, "cordova"));
} else {
utils.copyFile(path.join(BIN_DIR, "init"), path.join(project_path, "cordova"));
}
utils.copyFile(path.join(BIN_DIR, "init.bat"), path.join(project_path, "cordova"));
utils.copyFile(path.join(BIN_DIR, "init"), path.join(project_path, "cordova"));

//copy VERSION file [used to identify corresponding ~/.cordova/lib directory for dependencies]
utils.copyFile(path.join(ROOT_PROJECT_DIR, "VERSION"), path.join(project_path));

// copy repo level check_reqs script to project
utils.copyFile(path.join(BIN_DIR, "check_reqs.js"), path.join(project_path, "cordova"));
if (utils.isWindows()) {
utils.copyFile(path.join(BIN_DIR, "check_reqs.bat"), path.join(project_path, "cordova"));
} else {
utils.copyFile(path.join(BIN_DIR, "check_reqs"), path.join(project_path, "cordova"));
}
utils.copyFile(path.join(BIN_DIR, "check_reqs.bat"), path.join(project_path, "cordova"));
utils.copyFile(path.join(BIN_DIR, "check_reqs"), path.join(project_path, "cordova"));

// change file permission for cordova scripts because ant copy doesn't preserve file permissions
wrench.chmodSyncRecursive(path.join(project_path,"cordova"), 0700);

0 comments on commit 222d755

Please sign in to comment.