mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-19 19:34:18 +08:00
29 lines
658 B
Bash
Executable File
29 lines
658 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
echo "Downloading latest libc-artifacts"
|
|
git submodule update --init --remote libc-artifacts
|
|
|
|
echo "Downloading latest pkgutils"
|
|
git submodule update --init --remote pkgutils
|
|
cargo update --manifest-path pkgutils/Cargo.toml
|
|
|
|
echo "Defaulting to rust nightly"
|
|
rustup override set nightly
|
|
echo "Update rust nightly"
|
|
rustup update nightly
|
|
echo "Downloading rust source"
|
|
rustup component add rust-src
|
|
if [ -z "$(which cargo-config)" ]
|
|
then
|
|
echo "Installing cargo-config"
|
|
cargo install -f cargo-config
|
|
fi
|
|
if [ -z "$(which xargo)" ]
|
|
then
|
|
echo "Installing xargo"
|
|
cargo install -f xargo
|
|
fi
|
|
|
|
echo "cook.sh is ready to use"
|