Skip to content
Snippets Groups Projects
Commit 3536471c authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Add ability to get package information

parent 7d426b55
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment