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.
dotfiles/dotfiles/scripts/_install-sccache

15 lines
358 B
Bash
Executable File

#!/bin/sh
set -ex
REPO=https://github.com/mozilla/sccache
VERSION=v0.2.15
TARFILE="$HOME/.cache/sccache-$VERSION-x86_64-unknown-linux-musl.tar.gz"
BINDIR="$HOME/.local/bin"
test -f "$TARFILE" ||
wget -qO "$TARFILE" "$REPO/releases/download/$VERSION/$TARFILE.tar.gz"
tar -xf "$TARFILE" -C "$BINDIR" --wildcards "*/sccache"
chmod u+x "$BINDIR/sccache"