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:
authorisaacs <i@izs.me>2011-10-17 23:42:53 +0400
committerisaacs <i@izs.me>2011-10-17 23:42:53 +0400
commit3603372b4a4016f0a399860ea57192387d6d0f61 (patch)
treed6a066751885051884672e97192d8ab4f58183ae /scripts
parentae6a2d71ae9a4b027b8b7078dab181c602e85467 (diff)
Add Stephen to AUTHORS
Diffstat (limited to 'scripts')
-rw-r--r--scripts/install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/install.sh b/scripts/install.sh
index 074a01e9f..4ca9a644e 100644
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -24,6 +24,11 @@ if [ "x$0" = "xsh" ]; then
exit $ret
fi
+# See what "npm_config_*" things there are in the env,
+# and make them permanent.
+# If this fails, it's not such a big deal.
+configures="`env | grep 'npm_config_' | sed -e 's|^npm_config_||g'`"
+
npm_config_loglevel="error"
if [ "x$npm_debug" = "x" ]; then
(exit 0)
@@ -92,6 +97,11 @@ fi
# If the MAKE environment var is set, use that.
# otherwise, try to find gmake, and then make.
# If no make is found, then just execute the necessary commands.
+
+# XXX For some reason, make is building all the docs every time. This
+# is an annoying source of bugs. Figure out why this happens.
+MAKE=NOMAKE
+
if [ "x$MAKE" = "x" ]; then
make=`which gmake 2>&1`
if [ $? -eq 0 ] && [ -x $make ]; then
@@ -227,6 +237,12 @@ cd "$TMP" \
echo "Aborted 0.x cleanup. Exiting." >&2
exit $ret
fi) \
+ && (if [ "x$configures" = "x" ]; then
+ (exit 0)
+ else
+ echo "./configure "$configures
+ echo "$configures" > npmrc
+ fi) \
&& (if [ "$make" = "NOMAKE" ]; then
(exit 0)
elif "$make" uninstall install; then