diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..3bff847cf --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +all: + git checkout config/reader.go + sed -i -- "s/BUILD_VERSION/`git rev-parse HEAD`/g" config/reader.go || exit + CGO_ENABLED=0 go build -o mixin diff --git a/build.sh b/build.sh index 06c4af26a..5b139ec32 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,3 @@ #!/bin/sh -git checkout config/reader.go -sed -i -- "s/BUILD_VERSION/`git rev-parse HEAD`/g" config/reader.go || exit -CGO_ENABLED=0 go build +make diff --git a/config/reader.go b/config/reader.go index f42cc64b8..5a4983bdf 100644 --- a/config/reader.go +++ b/config/reader.go @@ -10,7 +10,7 @@ import ( const ( Debug = true - BuildVersion = "v0.18.10-BUILD_VERSION" + BuildVersion = "v0.18.11-BUILD_VERSION" KernelNetworkId = "74c6cdb7d51af57037faa1f5544f8331ced001df5964331911ca51385993b375" SnapshotRoundGap = uint64(3 * time.Second)