]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #24171 - rillian:rustup, r=brson
authorManish Goregaokar <manishsmail@gmail.com>
Thu, 9 Apr 2015 10:23:36 +0000 (15:53 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Thu, 9 Apr 2015 10:23:36 +0000 (15:53 +0530)
 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.

src/etc/rustup.sh

index 918c0c66f76df070b99848c2d53be8a5894ad6db..7c207385393c92f2262b278263799893c8d3af10 100755 (executable)
@@ -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"