#!/bin/sh -e for patch in *.patch; do patch -p1 < "$patch" done # This package mimics the download process of rust's 'x.py' # bootstrap library to allow for the removal of the internet # connection requirement per build. { mkdir -p "${cache_dir:=build/cache/2020-03-12}" for tarball in *.tar.xz\?no-extract; do mv -f "$tarball" "$cache_dir/${tarball%%\?no-extract}" done } # 'rust' checksums files in 'vendor/', but we patch a few. for vendor in libc openssl-sys; do sed -i 's/\("files":{\)[^}]*/\1/' "vendor/$vendor/.cargo-checksum.json" done cat > config.toml <