Buttplug sex toy control library
1# set -euxo pipefail
2
3# Based on the Rust-Embedded WG's book CI
4# https://github.com/rust-embedded/book/blob/master/ci/install.sh
5
6main() {
7 # Note - this will only accept releases tagged with v0.3.x
8 local tag=$(git ls-remote --tags --refs --exit-code \
9 https://github.com/rust-lang-nursery/mdbook \
10 | cut -d/ -f3 \
11 | grep -E '^v0\.3\.[0-9]+$' \
12 | sort --version-sort \
13 | tail -n1)
14
15 curl -LSfs https://japaric.github.io/trust/install.sh | \
16 sh -s -- --git rust-lang-nursery/mdbook --tag $tag
17}
18
19main