github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/fs/proto/prepare.sh (about) 1 # Copyright (C) 2017 go-nebulas authors 2 # 3 # This file is part of the go-nebulas library. 4 # 5 # the go-nebulas library is free software: you can redistribute it and/or modify 6 # it under the terms of the GNU General Public License as published by 7 # the Free Software Foundation, either version 3 of the License, or 8 # (at your option) any later version. 9 10 # the go-nebulas library is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # GNU General Public License for more details. 14 # 15 # You should have received a copy of the GNU General Public License 16 # along with the go-nebulas library. If not, see <http://www.gnu.org/licenses/>. 17 18 #!/bin/bash 19 20 CUR_DIR="$( pwd )" 21 #CUR_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" 22 #cd $CUR_DIR/fs/proto 23 cp ../../../core/pb/block.proto ./ 24 cp ../../../core/pb/dynasty.proto ./ 25 cp ../../../core/pb/genesis.proto ./ 26 cp ../../../consensus/pb/state.proto ./ 27 cp ../../../common/dag/pb/dag.proto ./ 28 cp ../../../common/trie/pb/trie.proto ./ 29 30 patch < block.proto.patch 31 32 #unzip protoc-3.2.0-linux-x86_64.zip -d protoc3 33 34 protoc --cpp_out=./ block.proto dag.proto dynasty.proto genesis.proto state.proto ir.proto trie.proto