]>
Commit | Line | Data |
---|---|---|
9fa01778 XL |
1 | set -euxo pipefail |
2 | ||
3 | main() { | |
4 | local tag=$(git ls-remote --tags --refs --exit-code \ | |
74b04a01 | 5 | https://github.com/rust-lang/mdbook \ |
9fa01778 | 6 | | cut -d/ -f3 \ |
e1599b0c | 7 | | grep -E '^v[0-9\.]+$' \ |
9fa01778 XL |
8 | | sort --version-sort \ |
9 | | tail -n1) | |
e1599b0c | 10 | |
9fa01778 | 11 | curl -LSfs https://japaric.github.io/trust/install.sh | \ |
74b04a01 | 12 | sh -s -- --git rust-lang/mdbook --tag $tag |
9fa01778 XL |
13 | |
14 | pip install linkchecker --user | |
15 | } | |
16 | ||
17 | main |