mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Add ability to get package information
This commit is contained in:
parent
7d426b552c
commit
3536471c47
11
cook.sh
11
cook.sh
@ -44,6 +44,17 @@ function op {
|
||||
unfetch)
|
||||
rm -rfv build
|
||||
;;
|
||||
info)
|
||||
pushd build > /dev/null
|
||||
if [ -e Cargo.toml ]
|
||||
then
|
||||
package_version="$(cargo config package.version | tr -d '"')"
|
||||
else
|
||||
package_version="$(git rev-parse --short HEAD)"
|
||||
fi
|
||||
echo "$1_${package_version}"
|
||||
popd > /dev/null
|
||||
;;
|
||||
update)
|
||||
pushd build > /dev/null
|
||||
skip="0"
|
||||
|
||||
5
setup.sh
5
setup.sh
@ -10,6 +10,11 @@ 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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user