about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-09 15:53:36 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-09 15:53:36 +0530
commitce765896c1d17cb630cdee7dc6dd8a2d724f0344 (patch)
tree8b2b73abc2a206d56d4492e6f3edcd6682a3202b /src
parent0e5e669272253fa1dcbe08a23977d1f9fb0a392a (diff)
parent9a51c63a2fa4ad38f0ff90649b948d2e5b667d19 (diff)
downloadrust-ce765896c1d17cb630cdee7dc6dd8a2d724f0344.tar.gz
rust-ce765896c1d17cb630cdee7dc6dd8a2d724f0344.zip
Rollup merge of #24171 - rillian:rustup, r=brson
 The idea here is if you don't want rust in /usr/local
you can put something like this is your .profile:

```
export RUSTUP_PREFIX=$HOME/.local/rust
export PATH=$PATH:${RUSTUP_PREFIX}/bin
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:${RUSTUP_PREFIX}/lib
```
Then when you run rustup, it will update the install
in ${RUSTUP_PREFIX} without having to remember to pass
an explicit --prefix argument every time.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/etc/rustup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rustup.sh b/src/etc/rustup.sh
index 918c0c66f76..7c207385393 100755
--- a/src/etc/rustup.sh
+++ b/src/etc/rustup.sh
@@ -286,7 +286,7 @@ BOOL_OPTIONS=""
 VAL_OPTIONS=""
 
 flag uninstall "only uninstall from the installation prefix"
-valopt prefix "" "set installation prefix"
+valopt prefix "${RUSTUP_PREFIX}" "set installation prefix"
 valopt date "" "use the YYYY-MM-DD nightly instead of the current nightly"
 valopt channel "beta" "use the selected release channel [beta]"
 flag save "save the downloaded nightlies to ~/.rustup"