-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
just download pre-built binaries instead of compiling them on the VM
- Loading branch information
1 parent
5734b16
commit 7de3a32
Showing
2 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
set -o nounset | ||
|
||
# Assume the environment variables MDBOOK_VERSION and MDBOOK_ADMONISH_VERSION are set | ||
|
||
# Download a tar ball and then unpack it into a destination | ||
# Arguments | ||
# 1 - URL for the .tar.gz to download | ||
# 2 - target directory to unpack into | ||
download() { | ||
wget -q -O - "${1}" | tar -xz --directory "${2}" | ||
} | ||
|
||
download \ | ||
https://github.com/rust-lang/mdBook/releases/download/v${MDBOOK_VERSION}/mdbook-v${MDBOOK_VERSION}-x86_64-unknown-linux-gnu.tar.gz \ | ||
~/.local/bin | ||
download \ | ||
https://github.com/tommilligan/mdbook-admonish/releases/download/v${MDBOOK_ADMONISH_VERSION}/mdbook-admonish-v${MDBOOK_ADMONISH_VERSION}-x86_64-unknown-linux-gnu.tar.gz \ | ||
~/.local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters