Skip to content

Instantly share code, notes, and snippets.

@bmritz
Created November 2, 2022 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmritz/ab6c5e2c9993124c56a87d45ae2eedc0 to your computer and use it in GitHub Desktop.
Save bmritz/ab6c5e2c9993124c56a87d45ae2eedc0 to your computer and use it in GitHub Desktop.
bin/cue:
$(eval TMP := $(shell mktemp -d))
$(eval TARFILE := cue.tar.gz)
if [[ $$OSTYPE == 'darwin'* ]]; then wget 'https://github.com/cue-lang/cue/releases/download/v0.5.0-alpha.1/cue_v0.5.0-alpha.1_darwin_amd64.tar.gz' -O $(TMP)/$(TARFILE); fi
@tar -xf $(TMP)/$(TARFILE) -C $(@D) cue*
rm -rf "$(TMP)"
@echo "Installed $@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment