-
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.
- Loading branch information
svetlyi
committed
Apr 11, 2021
1 parent
10a40f0
commit a4f8d44
Showing
4 changed files
with
77 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 |
---|---|---|
|
@@ -2,4 +2,5 @@ test_data/*.log | |
.idea | ||
.swo | ||
.swp | ||
.code | ||
.code | ||
release |
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,3 +1,6 @@ | ||
rectail : cmd/rectail/args.go cmd/rectail/rectail.go | ||
go test -v && go install ./cmd/rectail && echo 'installed to $$GOPATH/bin/rectail' && \ | ||
echo "to use, run 'rectail --help'" | ||
echo "to use, run 'rectail --help'" | ||
|
||
test : | ||
go test -v |
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 |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#!/bin/bash | ||
|
||
tag=$(git describe --tags) | ||
releasePath="release" | ||
mkdir -p releasePath | ||
|
||
mkdir -p release/$tag | ||
GOOS=windows GOARCH=386 go build -o $releasePath/rectail.exe ./cmd/rectail | ||
GOOS=windows GOARCH=amd64 go build -o $releasePath/rectail64.exe ./cmd/rectail | ||
|
||
GOOS=windows GOARCH=386 go build -o release/$tag/rectail.exe ./cmd/rectail | ||
GOOS=windows GOARCH=amd64 go build -o release/$tag/rectail64.exe ./cmd/rectail | ||
GOOS=linux GOARCH=386 go build -o $releasePath/rectail_linux ./cmd/rectail | ||
GOOS=linux GOARCH=amd64 go build -o $releasePath/rectail64_linux ./cmd/rectail | ||
|
||
GOOS=linux GOARCH=386 go build -o release/$tag/rectail_linux ./cmd/rectail | ||
GOOS=linux GOARCH=amd64 go build -o release/$tag/rectail64_linux ./cmd/rectail | ||
GOOS=darwin GOARCH=amd64 go build -o $releasePath/rectail_osx ./cmd/rectail | ||
|
||
GOOS=darwin GOARCH=amd64 go build -o release/$tag/rectail_osx ./cmd/rectail | ||
echo "generated" |