Created
July 2, 2014 20:32
-
-
Save brendanzab/e3ca7c0f925eae6d3f23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /tmp/ | |
git clone --recursive https://github.com/rust-lang/cargo | |
cd cargo | |
make | |
make install | |
cd $HOME | |
rm -rf /tmp/cargo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "`uname`" = "Darwin" ]; then | |
target=x86_64-apple-darwin | |
else | |
target=x86_64-unknown-linux-gnu | |
fi | |
mkdir /tmp/rust-update | |
cd /tmp/rust-update | |
curl -O http://static.rust-lang.org/dist/rust-nightly-$target.tar.gz | |
tar xf rust-nightly-$target.tar.gz | |
cd rust-nightly-$target | |
./install.sh # --prefix=$HOME/code/rust | |
cd $HOME | |
rm -rf /tmp/rust-update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment