Commit cb99f86a authored by root's avatar root

update

parent 44b0eee0
...@@ -2,20 +2,22 @@ ...@@ -2,20 +2,22 @@
check=$(shell if [ ! -d "./build/" ]; then mkdir build; else echo "exist"; fi;) check=$(shell if [ ! -d "./build/" ]; then mkdir build; else echo "exist"; fi;)
version=$(shell ./version.sh) version=$(shell ./version.sh)
tarfile = $(shell echo "build/chain33-pai_$(version).tar.gz" | sed s/[[:space:]]//g) tarfile = $(shell echo "chain33-pai_$(version).tar.gz" | sed s/[[:space:]]//g)
all: build all: build
build: build:
@go build -v . @go build -v -o pai .
@echo $(check) @echo $(check)
@rm -rf build/chain33-pai @rm -rf chain33-pai
@mkdir build/chain33-pai @mkdir chain33-pai
@cp chain33-pai build/chain33-pai @mv pai chain33-pai/chain33-pai
@cp *.sh build/chain33-pai @cp *.sh chain33-pai
@cp -r scripts build/chain33-pai @cp -r scripts chain33-pai
@chmod +x build/chain33-pai/*.sh @chmod +x chain33-pai/*.sh
@chmod +x build/chain33-pai/scripts/*.sh @chmod +x chain33-pai/scripts/*.sh
@tar cvfpz $(tarfile) build/chain33-pai @tar cvfpz $(tarfile) chain33-pai
@mv $(tarfile) build
@rm -rf chain33-pai
@echo "ok" @echo "ok"
tool: tool:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment