From a388ff198dd35d829e0d8c6713fa7303a45f7ff6 Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Mon, 23 Jan 2017 15:14:15 +0400 Subject: [PATCH] try to get version from version/version.go --- scripts/dist.sh | 4 ++++ version/version.go | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/dist.sh b/scripts/dist.sh index 7d106f986..8da29299a 100755 --- a/scripts/dist.sh +++ b/scripts/dist.sh @@ -1,6 +1,10 @@ #!/usr/bin/env bash set -e +# Get the version from the environment, or try to figure it out. +if [ -z $VERSION ]; then + VERSION=$(awk -F\" '/Version =/ { print $2; exit }' < version/version.go) +fi if [ -z "$VERSION" ]; then echo "Please specify a version." exit 1 diff --git a/version/version.go b/version/version.go index e0d7b4261..395087d7d 100644 --- a/version/version.go +++ b/version/version.go @@ -1,7 +1,7 @@ package version const Maj = "0" -const Min = "8" // validator set changes, tmsp->abci, app persistence/recovery, BFT-liveness fix -const Fix = "0" // +const Min = "8" +const Fix = "0" -const Version = Maj + "." + Min + "." + Fix +const Version = "0.8.0"