Scripts for bootstrapping various programming languages
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.

34 lines
1.5 KiB

#!/bin/sh
set -eu
version_openssl=1.1.1w # https://www.openssl.org/source/old/1.1.1/index.html
version_mrustc=0.10.1 # https://github.com/thepowersgang/mrustc/tags
version_mrustc_rust=1.29.0 # Depends on mrustc
versions_llvm='7.1.0 10.0.1 13.0.1 16.0.6' # https://github.com/llvm/llvm-project/releases
versions_rustc='1.30.1 1.31.1 1.32.0 1.33.0 1.34.2 1.35.0 1.36.0 1.37.0 1.38.0 1.39.0 1.40.0 1.41.1 1.42.0 1.43.1 1.44.1 1.45.2 1.46.0 1.47.0 1.48.0 1.49.0 1.50.0 1.51.0 1.52.1 1.53.0 1.54.0 1.55.0 1.56.1 1.57.0 1.58.1 1.59.0 1.60.0 1.61.0 1.62.1 1.63.0 1.64.0 1.65.0 1.66.1 1.67.1 1.68.2 1.69.0 1.70.0 1.71.1 1.72.1 1.73.0 1.74.1 1.75.0 1.76.0' # https://github.com/rust-lang/rust/blob/master/RELEASES.md
mkdir -p download
cd download
wget -c "https://www.openssl.org/source/old/1.1.1/openssl-$version_openssl.tar.gz"
wget -c "https://github.com/thepowersgang/mrustc/archive/v$version_mrustc/mrustc-$version_mrustc.tar.gz"
wget -c "https://static.rust-lang.org/dist/rustc-$version_mrustc_rust-src.tar.xz"
for version in $versions_llvm; do
case "$version" in
7.*|8.*)
tarball="llvm-$version.src" ;;
9.*|10.*)
tarball="llvm-project-$version" ;;
*)
tarball="llvm-project-$version.src" ;;
esac
wget -c "https://github.com/llvm/llvm-project/releases/download/llvmorg-$version/$tarball.tar.xz"
done
for version in $versions_rustc; do
wget -c "https://static.rust-lang.org/dist/rustc-$version-src.tar.xz"
done
sha256sum -c ../download.sha256