Skip to content

Commit

Permalink
bin/.ext: Add ubi (requirement for mise)
Browse files Browse the repository at this point in the history
Related: jdx/mise#2290
  • Loading branch information
liskin committed Sep 15, 2024
1 parent dfee039 commit ab2f313
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/.ext/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
/rust-analyzer
/tilt
/tz
/ubi
11 changes: 11 additions & 0 deletions bin/.ext/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ PANDOC_VERSION := 3.2
RUST_ANALYZER_VERSION := 2024-08-19
TILT_VERSION := v0.33.19
TZ_VERSION := v0.7.0
UBI_VERSION := v0.1.1

BUILDIFIER_GITHUB := bazelbuild/buildtools
CARGO_BINSTALL_GITHUB := cargo-bins/cargo-binstall
Expand All @@ -50,6 +51,7 @@ PANDOC_GITHUB := jgm/pandoc
RUST_ANALYZER_GITHUB := rust-analyzer/rust-analyzer
TILT_GITHUB := tilt-dev/tilt
TZ_GITHUB := oz/tz
UBI_GITHUB := houseabsolute/ubi

.PHONY: update
## Check for updates
Expand Down Expand Up @@ -269,6 +271,15 @@ jira: | .ext-jira ; ln -fsT $|/$@ $@
$(CURL) https://github.com/$(JIRA_CLI_GITHUB)/releases/download/$(JIRA_CLI_VERSION)/jira_$(JIRA_CLI_VERSION:v%=%)_linux_x86_64.tar.gz \
| tar -x -z -C $@ --strip-components=2 --wildcards "*/bin/jira"

# TODO: drop when https://github.com/jdx/mise/pull/2290 merged
all: ubi
ubi: | .ext-ubi ; ln -fsT $|/$@ $@
.ext-ubi: .ext-ubi-$(UBI_VERSION) ; ln -fsT $< $@
.ext-ubi-$(UBI_VERSION):
mkdir -p $@
$(CURL) https://github.com/$(UBI_GITHUB)/releases/download/$(UBI_VERSION)/ubi-Linux-x86_64-musl.tar.gz \
| tar -x -z -C $@ ubi

.PHONY: gc
## Remove old versions
gc:
Expand Down

0 comments on commit ab2f313

Please sign in to comment.