Commit cb99f86a authored by root's avatar root

update

parent 44b0eee0
......@@ -2,20 +2,22 @@
check=$(shell if [ ! -d "./build/" ]; then mkdir build; else echo "exist"; fi;)
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
build:
@go build -v .
@go build -v -o pai .
@echo $(check)
@rm -rf build/chain33-pai
@mkdir build/chain33-pai
@cp chain33-pai build/chain33-pai
@cp *.sh build/chain33-pai
@cp -r scripts build/chain33-pai
@chmod +x build/chain33-pai/*.sh
@chmod +x build/chain33-pai/scripts/*.sh
@tar cvfpz $(tarfile) build/chain33-pai
@rm -rf chain33-pai
@mkdir chain33-pai
@mv pai chain33-pai/chain33-pai
@cp *.sh chain33-pai
@cp -r scripts chain33-pai
@chmod +x chain33-pai/*.sh
@chmod +x chain33-pai/scripts/*.sh
@tar cvfpz $(tarfile) chain33-pai
@mv $(tarfile) build
@rm -rf chain33-pai
@echo "ok"
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