Created
February 13, 2015 22:53
-
-
Save gsquire/9b3758ef11296b26d8dd 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 | |
# Download OS X binaries of rust and install to $HOME/opt. | |
BASENAME=/usr/bin/basename | |
CUT=/usr/bin/cut | |
URL=https://static.rust-lang.org/dist/rust-nightly-x86_64-apple-darwin.tar.gz | |
FILE=$($BASENAME $URL) | |
DIR=$($CUT -d '.' -f 1 $FILE) | |
wget $URL | |
tar xf $FILE | |
./$DIR/install.sh --prefix=$HOME/opt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment