Skip to content

Commit

Permalink
Combine identical darwin freebsd server function
Browse files Browse the repository at this point in the history
  • Loading branch information
mtibben committed Jan 22, 2019
1 parent 46a31ef commit 4563ac0
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 19 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
/aws-vault
/aws-vault-*
.DS_Store
*~
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,10 @@ aws-vault-darwin-amd64: $(SRC)
aws-vault-windows-386.exe: $(SRC)
GOOS=windows GOARCH=386 go build -o $@ -ldflags="$(FLAGS)" .

aws-vault-freebsd-386: $(SRC)
GOOS=freebsd GOARCH=386 go build -o $@ -ldflags="$(FLAGS)" .

aws-vault-freebsd-amd64: $(SRC)
GOOS=freebsd GOARCH=amd64 go build -o $@ -ldflags="$(FLAGS)" .

release: aws-vault-linux-amd64 aws-vault-darwin-amd64 aws-vault-windows-386.exe aws-vault-freebsd-386 aws-vault-freebsd-amd64
release: aws-vault-linux-amd64 aws-vault-darwin-amd64 aws-vault-windows-386.exe aws-vault-freebsd-amd64

clean:
rm -f aws-vault aws-vault-linux-amd64 aws-vault-darwin-amd64 aws-vault-windows-386.exe aws-vault-freebsd-386 aws-vault-freebsd-amd64
rm -f aws-vault aws-vault-linux-amd64 aws-vault-darwin-amd64 aws-vault-windows-386.exe aws-vault-freebsd-amd64
2 changes: 1 addition & 1 deletion server/alias_darwin.go → server/alias_bsd.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build: darwin
// +build darwin freebsd

package server

Expand Down
9 changes: 0 additions & 9 deletions server/alias_freebsd.go

This file was deleted.

2 changes: 1 addition & 1 deletion server/alias_linux.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build: linux
// +build linux

package server

Expand Down
2 changes: 1 addition & 1 deletion server/alias_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build: windows
// +build windows

package server

Expand Down

0 comments on commit 4563ac0

Please sign in to comment.