2016-08-27 23:01:43 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2016-10-11 13:27:21 +02:00
|
|
|
source VARS
|
2016-08-27 23:01:43 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
echo "Setting up Rust"
|
|
|
|
|
2016-10-11 13:27:21 +02:00
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install rust
|
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
if is-arch; then
|
|
|
|
sudo pacman --noconfirm -S rust cargo
|
|
|
|
elif is-deb; then
|
|
|
|
echo ...
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
esac
|
|
|
|
|
2016-08-27 23:01:43 +02:00
|
|
|
git-repo "https://github.com/rust-lang/rust.git" "rust"
|
|
|
|
git-repo "https://github.com/phildawes/racer.git" "racer-src"
|
|
|
|
|
|
|
|
cd racer-src && cargo build --release
|
|
|
|
mv racer-src/target/release/racer ./racer
|