-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write pixi binaries to home dir cache (#4)
* write pixi binaries to home dir cache * provide install script
- Loading branch information
1 parent
049650d
commit 7e8b438
Showing
7 changed files
with
88 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
SHELL=/bin/bash | ||
|
||
ifndef VERBOSE | ||
.SILENT: | ||
endif | ||
|
||
.PHONY: install | ||
install: ## Install Pixipin on the local host. | ||
./install_from_git_checkout.sh | ||
|
||
.PHONY: test | ||
test: ## Run the test suite. | ||
./test.sh | ||
|
||
.PHONY: check | ||
check: ## Run linters, checkers, etc.. | ||
pre-commit run -a | ||
|
||
.PHONY: help | ||
help: ##xx Print this help message. | ||
echo "" | ||
echo "Usage: make <command>" | ||
echo "" | ||
echo "main commands:" | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}' | ||
echo "" | ||
echo "other commands:" | ||
@grep -E '^[a-zA-Z_-]+:.*?##xx .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?##xx "}; {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [ "$EUID" -ne 0 ]; then | ||
echo "Please run as root (use sudo)" | ||
exit 1 | ||
fi | ||
|
||
curl -o /usr/local/bin/pixi https://raw.githubusercontent.com/Ali-Piccioni/pixipin/main/pixipin | ||
chmod a+x /usr/local/bin/pixi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
if [ "$EUID" -ne 0 ]; then | ||
echo "Please run as root (use sudo)" | ||
exit 1 | ||
fi | ||
|
||
cd $(git rev-parse --show-toplevel) | ||
cp pixipin /usr/local/bin/pixi | ||
chmod a+x /usr/local/bin/pixi | ||
which pixi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters