Skip to content

Commit

Permalink
Remove brew target
Browse files Browse the repository at this point in the history
Rate limit · GitHub

Access has been restricted

You have triggered a rate limit.

Please wait a few minutes before you try again;
in some cases this may take up to an hour.

junegunn committed Jan 13, 2015
1 parent 789f26b commit 0b5fa56
Showing 2 changed files with 3 additions and 21 deletions.
21 changes: 3 additions & 18 deletions src/Makefile
Original file line number Diff line number Diff line change
@@ -21,29 +21,14 @@ BINARY64 := fzf-$(GOOS)_amd64
VERSION = $(shell fzf/$(BINARY64) --version)
RELEASE32 = fzf-$(VERSION)-$(GOOS)_386
RELEASE64 = fzf-$(VERSION)-$(GOOS)_amd64
BREW = fzf-$(VERSION)-homebrew.tgz

all: test release

brew: ../$(BREW)

../$(BREW): release
ifneq ($(UNAME_S),Darwin)
$(error brew package must be built on OS X)
endif
mkdir -p ../bin && \
cp fzf/$(RELEASE64) fzf/$(RELEASE32) ../bin && \
cd .. && ln -sf . fzf-$(VERSION) && \
tar -cvzf $(BREW) \
fzf-$(VERSION)/{{,un}install,fzf-completion.{ba,z}sh,LICENSE} \
fzf-$(VERSION)/{plugin/fzf.vim,bin/{$(RELEASE64),$(RELEASE32)}} && \
rm fzf-$(VERSION) && \
openssl sha1 $(notdir $@)

release: build
cd fzf && \
cp $(BINARY32) $(RELEASE32) && tar -czf $(RELEASE32).tgz $(RELEASE32) && \
cp $(BINARY64) $(RELEASE64) && tar -czf $(RELEASE64).tgz $(RELEASE64)
cp $(BINARY64) $(RELEASE64) && tar -czf $(RELEASE64).tgz $(RELEASE64) && \
rm $(RELEASE32) $(RELEASE64)

build: fzf/$(BINARY32) fzf/$(BINARY64)

@@ -86,4 +71,4 @@ $(DISTRO): docker
docker run -i -t -v $(GOPATH):/go junegunn/$(DISTRO)-sandbox \
sh -c 'cd /go/src/github.com/junegunn/fzf/src; /bin/bash'

.PHONY: all brew build release test install uninstall clean docker linux $(DISTRO)
.PHONY: all build release test install uninstall clean docker linux $(DISTRO)
3 changes: 0 additions & 3 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -83,9 +83,6 @@ make install

# Build executables and tarballs for Linux using Docker
make linux

# Build tarball for Homebrew release
make brew
```

Contribution

0 comments on commit 0b5fa56

Please sign in to comment.