From 79815e4298c30f825305541f3b9f011855a4650b Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 8 Oct 2020 14:11:36 +0700 Subject: [PATCH] include_lmdb_stat_tool (#1206) --- Makefile | 8 +++++++- cmd/hack/binary-deps/main.go | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 87d4bfa82..44436f01a 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ ifeq ($(OS),Linux) PROTOC_OS = linux endif -all: tg hack tester rpctest state restapi pics rpcdaemon integration +all: tg hack tester rpctest state restapi pics rpcdaemon integration lmdb-tools docker: docker build -t turbo-geth:latest . @@ -99,6 +99,12 @@ headers: @echo "Done building." @echo "Run \"$(GOBIN)/integration\" to run headers download PoC." +lmdb-tools: + $(GOBUILD) -o $(GOBIN)/lmdb_stat github.com/ledgerwatch/lmdb-go/cmd/lmdb_stat + $(GOBUILD) -o $(GOBIN)/lmdb_copy github.com/ledgerwatch/lmdb-go/cmd/lmdb_copy + @echo "Done building." + @echo "Run \"$(GOBIN)/lmdb_stat -h\" to get info about lmdb file." + test: semantics/z3/build/libz3.a $(GOTEST) diff --git a/cmd/hack/binary-deps/main.go b/cmd/hack/binary-deps/main.go index e1560d571..443678f84 100644 --- a/cmd/hack/binary-deps/main.go +++ b/cmd/hack/binary-deps/main.go @@ -17,6 +17,8 @@ package main import ( _ "github.com/fjl/gencodec" _ "github.com/kevinburke/go-bindata" + _ "github.com/ledgerwatch/lmdb-go/cmd/lmdb_copy" + _ "github.com/ledgerwatch/lmdb-go/cmd/lmdb_stat" _ "github.com/ugorji/go/codec/codecgen" _ "golang.org/x/tools/cmd/stringer" _ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"