cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: CB-4538 copy check_reqs scripts
Date Fri, 29 Nov 2013 03:18:14 GMT
Updated Branches:
  refs/heads/master 22ef68da6 -> 5722f27a0


CB-4538 copy check_reqs scripts


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

Branch: refs/heads/master
Commit: 5722f27a05e8e24833526243d848a805d370771e
Parents: 22ef68d
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Nov 28 19:16:28 2013 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Nov 28 19:16:28 2013 -0800

----------------------------------------------------------------------
 wp7/tooling/scripts/createTemplates.js | 20 ++++++++++++++++++++
 wp8/tooling/scripts/createTemplates.js | 19 +++++++++++++++++++
 2 files changed, 39 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/5722f27a/wp7/tooling/scripts/createTemplates.js
----------------------------------------------------------------------
diff --git a/wp7/tooling/scripts/createTemplates.js b/wp7/tooling/scripts/createTemplates.js
index 5f044a0..7c7e8d1 100644
--- a/wp7/tooling/scripts/createTemplates.js
+++ b/wp7/tooling/scripts/createTemplates.js
@@ -143,6 +143,22 @@ function copyFile(src,dest) {
     exec('%comspec% /c copy /Y ' + src + ' ' + dest);
 }
 
+function copyCommonScripts() {
+    var srcPath = platformRoot + "\\bin";
+    var destPath = platformRoot + templatePath + "\\cordova";
+
+    copyFile(srcPath + "\\check_reqs.bat", destPath + "\\check_reqs.bat");
+    copyFile(srcPath + "\\check_reqs.js", destPath + "\\check_reqs.js");
+}
+
+function removeCommonScripts() {
+    var destPath = platformRoot + templatePath + "\\cordova";
+
+    deleteFileIfExists(destPath + "\\check_reqs.bat");
+    deleteFileIfExists(destPath + "\\check_reqs.js");
+}
+
+
 function copyCommonItemsToTemplate() {
     var srcPath = repoRoot + '\\common';
     var destPath = platformRoot + templatePath;
@@ -159,6 +175,8 @@ function copyCommonItemsToTemplate() {
         exec('%comspec% /c xcopy /Y /E /I ' + srcPath + "\\" + subFlds.item().name + " "
             + destPath + "\\" + subFlds.item().name);
     }
+
+    copyCommonScripts();
 }
 
 // delete desination items
@@ -174,6 +192,8 @@ function removeCommonItems() {
     for (var subFlds = new Enumerator(folder.SubFolders) ; !subFlds.atEnd() ; subFlds.moveNext())
{
         deleteFolderIfExists(destPath + "\\" + subFlds.item().name);
     }
+
+    removeCommonScripts();
 }
 
 

http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/5722f27a/wp8/tooling/scripts/createTemplates.js
----------------------------------------------------------------------
diff --git a/wp8/tooling/scripts/createTemplates.js b/wp8/tooling/scripts/createTemplates.js
index 37aa1e7..650b375 100644
--- a/wp8/tooling/scripts/createTemplates.js
+++ b/wp8/tooling/scripts/createTemplates.js
@@ -142,6 +142,21 @@ function copyFile(src,dest) {
     exec('%comspec% /c copy /Y ' + src + ' ' + dest);
 }
 
+function copyCommonScripts() {
+    var srcPath = platformRoot + "\\bin";
+    var destPath = platformRoot + templatePath + "\\cordova";
+    
+    copyFile(srcPath + "\\check_reqs.bat", destPath + "\\check_reqs.bat");
+    copyFile(srcPath + "\\check_reqs.js", destPath + "\\check_reqs.js");
+}
+
+function removeCommonScripts() {
+    var destPath = platformRoot + templatePath + "\\cordova";
+
+    deleteFileIfExists(destPath + "\\check_reqs.bat");
+    deleteFileIfExists(destPath + "\\check_reqs.js");
+}
+
 function copyCommonItemsToTemplate() {
     var srcPath = repoRoot + '\\common';
     var destPath = platformRoot + templatePath;
@@ -158,6 +173,8 @@ function copyCommonItemsToTemplate() {
         exec('%comspec% /c xcopy /Y /E /I ' + srcPath + "\\" + subFlds.item().name + " "
             + destPath + "\\" + subFlds.item().name);
     }
+
+    copyCommonScripts();
 }
 
 // delete desination items
@@ -173,6 +190,8 @@ function removeCommonItems() {
     for (var subFlds = new Enumerator(folder.SubFolders) ; !subFlds.atEnd() ; subFlds.moveNext())
{
         deleteFolderIfExists(destPath + "\\" + subFlds.item().name);
     }
+
+    removeCommonScripts();
 }
 
 // packages templates into .zip


Mime
View raw message