Skip to content

check CARGO_HOME env var #850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
check CARGO_HOME env var
  • Loading branch information
eZioPan committed Jun 10, 2023
commit 07aa86f09ad9a08aa80f8e1657f29b6040eb3d8d
19 changes: 11 additions & 8 deletions scripts/tool_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,29 @@ case "${1:-}" in
;;
esac

# check CARGO_HOME env var
CARGO_BIN_DIR="${CARGO_HOME:-~/.cargo/bin}"

if [ "${form:-}" ]; then
echo "form = ${form}"
curl -sSfL https://github.com/djmcgill/form/releases/download/$form/form-x86_64-unknown-linux-gnu.gz | gzip -d - > ~/.cargo/bin/form
chmod +x ~/.cargo/bin/form
curl -sSfL https://github.com/djmcgill/form/releases/download/$form/form-x86_64-unknown-linux-gnu.gz | gzip -d - > "${CARGO_BIN_DIR}/form"
chmod +x "${CARGO_BIN_DIR}/form"
fi

if [ "${svdtools:-}" ]; then
echo "svdtools = ${svdtools}"
curl -sSfL https://github.com/stm32-rs/svdtools/releases/download/$svdtools/svdtools-x86_64-unknown-linux-gnu.gz | gzip -d - > ~/.cargo/bin/svdtools
chmod +x ~/.cargo/bin/svdtools
curl -sSfL https://github.com/stm32-rs/svdtools/releases/download/$svdtools/svdtools-x86_64-unknown-linux-gnu.gz | gzip -d - > "${CARGO_BIN_DIR}/svdtools"
chmod +x "${CARGO_BIN_DIR}/svdtools"
fi

if [ "${svd2rust:-}" ]; then
echo "svd2rust = ${svd2rust}"
curl -sSfL https://github.com/rust-embedded/svd2rust/releases/download/$svd2rust/svd2rust-x86_64-unknown-linux-gnu.gz | gzip -d - > ~/.cargo/bin/svd2rust
chmod +x ~/.cargo/bin/svd2rust
curl -sSfL https://github.com/rust-embedded/svd2rust/releases/download/$svd2rust/svd2rust-x86_64-unknown-linux-gnu.gz | gzip -d - > "${CARGO_BIN_DIR}/svd2rust"
chmod +x "${CARGO_BIN_DIR}/svd2rust"
fi

if [ "${svd2html:-}" ]; then
echo "svd2html = ${svd2html}"
curl -sSfL https://github.com/burrbull/svd2html/releases/download/$svd2html/svd2html-x86_64-unknown-linux-gnu.gz | gzip -d - > ~/.cargo/bin/svd2html
chmod +x ~/.cargo/bin/svd2html
curl -sSfL https://github.com/burrbull/svd2html/releases/download/$svd2html/svd2html-x86_64-unknown-linux-gnu.gz | gzip -d - > "${CARGO_BIN_DIR}/svd2html"
chmod +x "${CARGO_BIN_DIR}/svd2html"
fi
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy