This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
2022-03-20 21:00:39 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
REPO="https://github.com/rust-analyzer/rust-analyzer"
|
2022-04-09 05:02:59 +02:00
|
|
|
VERSION="2022-04-04"
|
2022-03-20 21:00:39 +01:00
|
|
|
DLURL="$REPO/releases/download/$VERSION/rust-analyzer-x86_64-unknown-linux-gnu.gz"
|
|
|
|
GZFILE="$HOME/.cache/rust-analyzer-$VERSION-x86_64-unknown-linux-gnu.gz"
|
|
|
|
BINDIR="$HOME/.local/bin"
|
|
|
|
|
|
|
|
test -f "$GZFILE" ||
|
|
|
|
wget -O "$GZFILE" "$DLURL"
|
|
|
|
|
|
|
|
rm -f "$BINDIR/rust-analyzer"
|
|
|
|
gunzip "$GZFILE" --stdout > "$BINDIR/rust-analyzer"
|
|
|
|
chmod u+x "$BINDIR/rust-analyzer"
|