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.

17 lines
420 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. #! /bin/bash
  2. # exit if a command fails
  3. set -eo pipefail
  4. # install curl (needed to install rust)
  5. apt-get update && apt-get install -y curl gdb
  6. # install rust + cargo nightly
  7. curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
  8. # cleanup package manager
  9. apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
  10. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  11. # prepare dir
  12. mkdir /source