File: install-mdbook.sh

package info (click to toggle)
rust-async-std 1.13.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,992 kB
  • sloc: sh: 13; makefile: 8
file content (19 lines) | stat: -rwxr-xr-x 631 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
set -euxo pipefail

# Based on the Rust-Embedded WG's book CI
# https://github.com/rust-embedded/book/blob/HEAD/ci/install.sh

main() {
    # Note - this will only accept releases tagged with v0.3.x
    local tag=$(git ls-remote --tags --refs --exit-code \
                    https://github.com/rust-lang-nursery/mdbook \
                        | cut -d/ -f3 \
                        | grep -E '^v0\.3\.[0-9]+$' \
                        | sort --version-sort \
                        | tail -n1)

    curl -LSfs https://japaric.github.io/trust/install.sh | \
        sh -s -- --git rust-lang-nursery/mdbook --tag $tag
}

main