You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/09/18 02:58:05 UTC

git commit: added case-insensitivity to check_reqs for wp8, just like @albanf did for wp7

Updated Branches:
  refs/heads/master d02fb56b6 -> aa6fd8c2b


added case-insensitivity to check_reqs for wp8, just like @albanf did for wp7


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

Branch: refs/heads/master
Commit: aa6fd8c2b97fd2b921625f82309adf4f5fed24f9
Parents: d02fb56
Author: purplecabbage <pu...@gmail.com>
Authored: Tue Sep 17 17:57:41 2013 -0700
Committer: purplecabbage <pu...@gmail.com>
Committed: Tue Sep 17 17:57:41 2013 -0700

----------------------------------------------------------------------
 wp8/bin/check_reqs.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/aa6fd8c2/wp8/bin/check_reqs.js
----------------------------------------------------------------------
diff --git a/wp8/bin/check_reqs.js b/wp8/bin/check_reqs.js
index b483841..58d16cf 100644
--- a/wp8/bin/check_reqs.js
+++ b/wp8/bin/check_reqs.js
@@ -53,7 +53,7 @@ function check_command(cmd, fail_msg) {
         WScript.Sleep(100);
     }
 
-    //Check that command executed 
+    //Check that command executed
     if (!out.StdErr.AtEndOfStream) {
         var line = out.StdErr.ReadLine();
         Log(fail_msg, true);
@@ -80,7 +80,7 @@ function SystemRequiermentsMet() {
     var cmd = 'msbuild -version'
     var fail_msg = 'The command `msbuild` failed. Make sure you have the latest Windows Phone SDKs installed, AND have the latest .NET framework added to your path (i.e C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).'
     var output = check_command(cmd, fail_msg);
-    var msversion = output.match(/\.NET\sFramework\,\sversion\s4\.0/);
+    var msversion = output.match(/\.NET\sFramework\,\sversion\s4\.0/i);
     if (!msversion) {
         Log('Please install the .NET Framwork v4.0.30319 (in the latest windows phone SDK\'s).', true);
         Log('Make sure the "msbuild" command in your path is pointing to  v4.0.30319 of msbuild as well (inside C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).', true);
@@ -91,7 +91,7 @@ function SystemRequiermentsMet() {
         cmd = 'git --version';
         fail_msg = 'The command `git` failed. Make sure you have git installed as well ad in your PATH environment so the tool can use it';
         output = check_command(cmd, fail_msg);
-        var gitVersion = output.match(/git\sversion\s1\./);
+        var gitVersion = output.match(/git\sversion\s1\./i);
         if (!gitVersion) {
             Log('Please ensure you have at least git v1 installed and added to you PATH so this tool can use it to get the latest codova.');
         }