Created
February 25, 2018 18:59
-
-
Save nikomatsakis/81e50fdf7254da8870c682109c404694 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
if [[ "$1" == "" ]]; then | |
echo "Usage: $0 <sha1>" | |
echo "" | |
echo "e.g. $0 251f86541a2fcc1c26534ce4d680fe23f82a8bb7" | |
exit 1 | |
fi | |
SHA="$1" | |
mkdir -p ~/bors/$SHA | |
cd ~/bors/$SHA | |
echo "Created $PWD" | |
echo "Executing curl" | |
curl -L "https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rustc-builds/$SHA/rust-nightly-x86_64-unknown-linux-gnu.tar.xz" | tar xJf - | |
echo "Move the libs into the right place" | |
cd rust-nightly-x86_64-unknown-linux-gnu | |
mv rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/ ./rustc/lib/rustlib/x86_64-unknown-linux-gnu/ | |
echo "Executing rustup" | |
rustup toolchain link $SHA $PWD/rustc | |
echo "Try rustc +$SHA now" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment