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 { ...@@ -44,6 +44,17 @@ function op {
unfetch) unfetch)
rm -rfv build 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) update)
pushd build > /dev/null pushd build > /dev/null
skip="0" skip="0"
......
...@@ -10,6 +10,11 @@ echo "Update rust nightly" ...@@ -10,6 +10,11 @@ echo "Update rust nightly"
rustup update nightly rustup update nightly
echo "Downloading rust source" echo "Downloading rust source"
rustup component add rust-src 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)" ] if [ -z "$(which xargo)" ]
then then
echo "Installing xargo" 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