Browse Source

Change "make build" to set GitCommit variable

As described above.
pull/489/head
Adrian Brink 7 years ago
parent
commit
6312eb91be
2 changed files with 3 additions and 2 deletions
  1. +2
    -1
      Makefile
  2. +1
    -1
      version/version.go

+ 2
- 1
Makefile View File

@ -11,7 +11,8 @@ install: get_vendor_deps
@go install ./cmd/tendermint
build:
go build -o build/tendermint ./cmd/tendermint
go build --ldflags '-extldflags "-static"' \
--ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse HEAD`" -o build/tendermint ./cmd/tendermint/
build_race:
go build -race -o build/tendermint ./cmd/tendermint


+ 1
- 1
version/version.go View File

@ -4,4 +4,4 @@ const Maj = "0"
const Min = "10"
const Fix = "0"
const Version = "0.10.0"
const Version = Maj + "." + Min + "." + Fix

Loading…
Cancel
Save