cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject spec commit: CB-12921: fix invalid references after cordova-lib repo got split out.
Date Wed, 14 Jun 2017 23:32:03 GMT
Repository: cordova-mobile-spec
Updated Branches:
  refs/heads/master 80e78edf2 -> 6a183189c


CB-12921: fix invalid references after cordova-lib repo got split out.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/6a183189
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/6a183189
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/6a183189

Branch: refs/heads/master
Commit: 6a183189c2035150db9176630f6578d5b71c30ce
Parents: 80e78ed
Author: filmaj <maj.fil@gmail.com>
Authored: Wed Jun 14 17:44:04 2017 -0500
Committer: filmaj <maj.fil@gmail.com>
Committed: Wed Jun 14 17:44:04 2017 -0500

----------------------------------------------------------------------
 createmobilespec/createmobilespec.js | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/6a183189/createmobilespec/createmobilespec.js
----------------------------------------------------------------------
diff --git a/createmobilespec/createmobilespec.js b/createmobilespec/createmobilespec.js
index 7329214..f267328 100755
--- a/createmobilespec/createmobilespec.js
+++ b/createmobilespec/createmobilespec.js
@@ -347,10 +347,10 @@ if (argv.global) {
     console.log(["  ." + path.sep + "cordova-coho" + path.sep + "coho repo-clone"].concat(repos).join("
-r "));
     if (!argv.globalplugins) {
         console.log("  mkdir cordova-cli" + path.sep + "node_modules");
-        console.log("  (cd cordova-lib" + path.sep + "cordova-lib" + path.sep + " &&
npm install)");
+        console.log("  (cd cordova-lib && npm install)");
         console.log("  (cd cordova-plugman" + path.sep + " && npm install)");
         console.log("  mkdir cordova-cli" + path.sep + "node_modules");
-        console.log("  ln -s .." + path.sep + ".." + path.sep + "cordova-lib" + path.sep
+ "cordova-lib cordova-cli" + path.sep + "node_modules");
+        console.log("  ln -s .." + path.sep + ".." + path.sep + "cordova-lib cordova-cli"
+ path.sep + "node_modules");
         console.log("  (cd cordova-cli && npm install)");
     }
     console.log("To update all repositories:");
@@ -369,17 +369,8 @@ if (argv.clearnpmcache) {
     shelljs.rm("-rf", path.join(home_dir, ".plugman"));
 }
 
-function getPathFromModuleName(moduleName) {
-    if (moduleName == "cordova-lib") {
-        return(moduleName + path.sep + moduleName);
-    } else {
-        return(moduleName);
-    }
-}
-
 function cdInto(moduleName) {
-    var myPath = getPathFromModuleName(moduleName);
-    pushd(myPath);
+    pushd(moduleName);
 }
 
 function cdOutOf() {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message