Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-x[-rw-r--r--]scripts/activate.js0
-rwxr-xr-x[-rw-r--r--]scripts/bootstrap.js0
-rwxr-xr-x[-rw-r--r--]scripts/deactivate.js0
-rwxr-xr-x[-rw-r--r--]scripts/install.js10
-rwxr-xr-x[-rw-r--r--]scripts/uninstall.js0
5 files changed, 8 insertions, 2 deletions
diff --git a/scripts/activate.js b/scripts/activate.js
index 990ded0e4..990ded0e4 100644..100755
--- a/scripts/activate.js
+++ b/scripts/activate.js
diff --git a/scripts/bootstrap.js b/scripts/bootstrap.js
index 7a6fa336c..7a6fa336c 100644..100755
--- a/scripts/bootstrap.js
+++ b/scripts/bootstrap.js
diff --git a/scripts/deactivate.js b/scripts/deactivate.js
index e59caf740..e59caf740 100644..100755
--- a/scripts/deactivate.js
+++ b/scripts/deactivate.js
diff --git a/scripts/install.js b/scripts/install.js
index 014787775..0279cad46 100644..100755
--- a/scripts/install.js
+++ b/scripts/install.js
@@ -1,16 +1,22 @@
#!/usr/local/bin/node
+
var fs = require("fs"),
version = process.env["npm.package.version"],
bin = "/usr/local/bin/npm-"+version,
- clijs = require("path").join(process.cwd(), "cli.js");
+ clijs = require("path").join(process.cwd(), "cli.js"),
+ sys = require("sys");
+
+sys.puts("1 about to link " + clijs+" to " +bin + "\ncwd:"+process.cwd());
+
fs.lstat(bin, function (er, st) {
- if (er) fs.unlink(bin, linkBin);
+ if (!er) fs.unlink(bin, linkBin);
else linkBin();
});
function linkBin (er) {
if (er) throw er;
+ sys.puts("about to link " + clijs+" to " +bin);
fs.symlinkSync(clijs, bin, function (er) {
if (er) throw er;
});
diff --git a/scripts/uninstall.js b/scripts/uninstall.js
index eeb53c9ab..eeb53c9ab 100644..100755
--- a/scripts/uninstall.js
+++ b/scripts/uninstall.js