From b2a48522ff661e957d780db060121fac3adb6e7a Mon Sep 17 00:00:00 2001 From: Jason Coene Date: Tue, 25 Feb 2014 10:50:17 -0600 Subject: [PATCH] Release version 0.1.0 --- .gitignore | 3 +-- Makefile | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 39a566c..1521c8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -statsd_darwin_amd64 -statsd_linux_amd64 +dist diff --git a/Makefile b/Makefile index c7fb99f..58348a2 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +VERSION=0.1.0 + default: fmt run fmt: @@ -5,3 +7,16 @@ fmt: test: go test -cover + +release: + mkdir -p bin dist + + GOOS=darwin GOARCH=amd64 go build -o bin/statsd + tar zcvf dist/statsd-${VERSION}.darwin-amd64.tar.gz bin/statsd + rm -f bin/statsd + + GOOS=linux GOARCH=amd64 go build -o bin/statsd + tar zcvf dist/statsd-${VERSION}.linux-amd64.tar.gz bin/statsd + rm -f bin/statsd + + rmdir bin