diff --git a/.gitignore b/.gitignore index 41e6063..b073536 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ _testmain.go vegeta vegeta.test targets.txt + +vegeta-*.tar.gz diff --git a/README.md b/README.md index e3f25e1..52952ad 100644 --- a/README.md +++ b/README.md @@ -8,28 +8,10 @@ It can be used both as a command line utility and a library. ## Install ### Pre-compiled executables -You can download already compiled executables for Linux and Mac OS X. -``` -Linux 64 bit -URL: https://dl.dropboxusercontent.com/u/83217940/vegeta-linux-amd64.tar -SHA256 of the executable: -91483be3f3235ce72740751d38985c8b0c702b1eccdef67b02cf5b56620e8a19 - -Linux 32 bit -URL: https://dl.dropboxusercontent.com/u/83217940/vegeta-linux-386.tar -SHA256 of the executable: -0937a2a65a9a376fb2cec08c6f580c412675ae1e6eccf64d804472945b613871 - -Mac OS X 64 bit -URL: https://dl.dropboxusercontent.com/u/83217940/vegeta-darwin-amd64.tar -SHA256 of the executable: -e594b69a24f93c96a2b26d6d39f12d9dc111e9636324452bd08856d1d919794d - -Mac OS X 32 bit -URL: https://dl.dropboxusercontent.com/u/83217940/vegeta-darwin-386.tar -SHA256 of the executable: -f209a1798f2e9b2e5b32d4be09b10333c74e45f1ed7527e63d331063db95aa39 -``` +* [Mac OSX 64 bit](https://dl.dropboxusercontent.com/u/83217940/vegeta-darwin-amd64-fecd4f8.tar.gz) +* [Mac OSX 32 bit](https://dl.dropboxusercontent.com/u/83217940/vegeta-darwin-386-fecd4f8.tar.gz) +* [Linux 64 bit](https://dl.dropboxusercontent.com/u/83217940/vegeta-linux-amd64-fecd4f8.tar.gz) +* [Linux 32 bit](https://dl.dropboxusercontent.com/u/83217940/vegeta-linux-386-fecd4f8.tar.gz) ### Source You need go installed and `GOBIN` in your `PATH`. Once that is done, run the diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..6b367f4 --- /dev/null +++ b/release.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +for OS in "linux" "darwin"; do + for ARCH in "386" "amd64"; do + GOOS=$OS CGO_ENABLED=0 GOARCH=$ARCH go build -o vegeta + REV=$(git rev-parse HEAD) + ARCHIVE=vegeta-$OS-$ARCH-${REV:0:7}.tar.gz + tar -czf $ARCHIVE vegeta + echo $ARCHIVE + done +done