From ab350ec41198d2847c40665143e5976635457820 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Thu, 1 Sep 2016 10:15:56 -0400 Subject: [PATCH] release bump --- README.md | 6 +++--- cmd/humanlog/main.go | 4 +++- scripts/release.sh | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ff9893a9..7995f8c6 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ $ go get -u github.com/aybabtme/humanlog/... ## On linux ```bash -wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.9/humanlog_linux_amd64.tar.gz | tar xvz +wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.10/humanlog_linux_amd64.tar.gz | tar xvz ``` ## On OS X ```bash -wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.9/humanlog_darwin_amd64.tar.gz | tar xvz +wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.10/humanlog_darwin_amd64.tar.gz | tar xvz ``` # Example @@ -53,7 +53,7 @@ USAGE: humanlog [global options] command [command options] [arguments...] VERSION: - 0.1.9 + 0.1.10 AUTHOR: Antoine Grondin - diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go index 6565e06d..6f052faf 100644 --- a/cmd/humanlog/main.go +++ b/cmd/humanlog/main.go @@ -9,6 +9,8 @@ import ( "github.com/codegangsta/cli" ) +var version = "devel" + func fatalf(c *cli.Context, format string, args ...interface{}) { log.Printf(format, args...) cli.ShowAppHelp(c) @@ -70,7 +72,7 @@ func newApp() *cli.App { app.Author = "Antoine Grondin" app.Email = "antoine@digitalocean.com" app.Name = "humanlog" - app.Version = "0.1.8" + app.Version = version app.Usage = "reads structured logs from stdin, makes them pretty on stdout!" app.Flags = []cli.Flag{skipFlag, keepFlag, sortLongest, skipUnchanged, truncates, truncateLength} diff --git a/scripts/release.sh b/scripts/release.sh index 22758745..60452aa4 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -23,13 +23,13 @@ set -u -e rm -rf /tmp/humanlog_build/ mkdir -p /tmp/humanlog_build/linux -GOOS=linux godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/linux/humanlog ../ +GOOS=linux godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/linux/humanlog ../cmd/humanlog pushd /tmp/humanlog_build/linux/ tar cvzf /tmp/humanlog_build/humanlog_linux.tar.gz humanlog popd mkdir -p /tmp/humanlog_build/darwin -GOOS=darwin godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/darwin/humanlog ../ +GOOS=darwin godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/darwin/humanlog ../cmd/humanlog pushd /tmp/humanlog_build/darwin/ tar cvzf /tmp/humanlog_build/humanlog_darwin.tar.gz humanlog popd