403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/lang/rust/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/lang/rust/update.sh
#!/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=$(</tmp/channel-rust-stable.toml tomlq -r '.pkg.rustc.version | split(" ")[0]')
new_commit=$(</tmp/channel-rust-stable.toml tomlq -r '.pkg.rustc.git_commit_hash')
rm /tmp/channel-rust-stable.toml

fetch -qo - https://raw.githubusercontent.com/rust-lang/rust/${new_commit}/src/stage0.json | jq -r '
	"BOOTSTRAPS_DATE=\(.compiler.date)",
	"RUST_BOOTSTRAP_VERSION=\(.compiler.version)"
' | portedit merge -i .

sed -i '' -E -e "s,(\\$\\{RUST_DEFAULT\\}>=).*(:lang/\\$\\{RUST_DEFAULT\\}),\\1${version}\\2," \
	../../Mk/Uses/cargo.mk ../../Mk/bsd.gecko.mk

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

Youez - 2016 - github.com/yon3zu
LinuXploit