#!/bin/sh # Requires: pkg install portfmt yq # Run in lang/rust set -eu fetch -qo /tmp/channel-rust-stable.toml https://dev-static.rust-lang.org/dist/channel-rust-stable.toml version=$(=/ { s,(\\$\\{RUST_DEFAULT\\}>=).*(:lang/\\$\\{RUST_DEFAULT\\}),\\1${version}\\2, } EOF portedit set-version -i "${version}" . portedit set-version -i "${version}" ../rust-bootstrap make makesum make -C ../rust-bootstrap makesum echo "lang/rust: Update to ${version} https://blog.rust-lang.org/FIXME/Rust-${version}.html PR: FIXME Exp-run by: antoine Differential Revision: FIXME" >rust.msg