Skip to content

Instantly share code, notes, and snippets.

@brendanzab
Created July 2, 2014 20:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendanzab/e3ca7c0f925eae6d3f23 to your computer and use it in GitHub Desktop.
Save brendanzab/e3ca7c0f925eae6d3f23 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd /tmp/
git clone --recursive https://github.com/rust-lang/cargo
cd cargo
make
make install
cd $HOME
rm -rf /tmp/cargo
#!/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