You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
623 B

10 years ago
  1. #! /bin/bash
  2. triple=x86_64-unknown-linux-gnu
  3. # install curl (needed to install rust)
  4. apt-get update && apt-get install -y curl gdb g++-multilib lib32stdc++6
  5. # install rust
  6. curl -sL https://static.rust-lang.org/dist/rust-nightly-$triple.tar.gz | tar xvz -C /tmp
  7. /tmp/rust-nightly-$triple/install.sh
  8. # install cargo
  9. curl -sL https://static.rust-lang.org/cargo-dist/cargo-nightly-$triple.tar.gz | tar xvz -C /tmp
  10. /tmp/cargo-nightly-$triple/install.sh
  11. # cleanup package manager
  12. apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
  13. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  14. # prepare dir
  15. mkdir /source