-
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.
Rename binary to git-lazy-commit (#16)
Instead of providing a binary called git-lzc, which, while convenient, is not descriptive and shows a bias for what the shortcut should be, the binary is now called git-lazy-commit. For convenience, `git lzc` is now documented as a suggested alias. Resolves #15
- Loading branch information
1 parent
4082b1e
commit e2f6c91
Showing
7 changed files
with
30 additions
and
20 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Built assets | ||
git-lzc | ||
git-lzc-* | ||
!/cmd/git-lzc | ||
git-lazy-commit | ||
git-lazy-commit-* | ||
!/cmd/git-lazy-commit | ||
/dist/ |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
FILES = $(shell find -type f -name '*.go') | ||
DISTRIBUTIONS = darwin-amd64 linux-amd64 windows-amd64 openbsd-amd64 freebsd-amd64 netbsd-amd64 linux-386 windows-386 openbsd-386 freebsd-386 netbsd-386 | ||
targets = $(foreach distribution,$(DISTRIBUTIONS),dist/git-lzc-$(distribution)$(if $(findstring windows,$(distribution)),.exe)) | ||
targets = $(foreach distribution,$(DISTRIBUTIONS),dist/git-lazy-commit-$(distribution)$(if $(findstring windows,$(distribution)),.exe)) | ||
|
||
git-lzc: $(FILES) go.mod go.sum | ||
go build ./cmd/git-lzc/ | ||
git-lazy-commit: $(FILES) go.mod go.sum | ||
go build ./cmd/git-lazy-commit/ | ||
|
||
$(targets): dist/git-lzc-%: $(FILES) go.mod go.sum | ||
GOOS=$(word 1, $(subst -, ,$*)) GOARCH=$(word 1, $(subst ., ,$(word 2, $(subst -, ,$*)))) go build -o $@ ./cmd/git-lzc/ | ||
$(targets): dist/git-lazy-commit-%: $(FILES) go.mod go.sum | ||
GOOS=$(word 1, $(subst -, ,$*)) GOARCH=$(word 1, $(subst ., ,$(word 2, $(subst -, ,$*)))) go build -o $@ ./cmd/git-lazy-commit/ | ||
|
||
.PHONY: all | ||
all: $(targets) | ||
|
||
.PHONY: install | ||
install: git-lzc | ||
cp git-lzc /usr/local/bin/ | ||
install: git-lazy-commit | ||
cp git-lazy-commit /usr/local/bin/ |
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
File renamed without changes.
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