-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_pb.sh
executable file
·25 lines (20 loc) · 919 Bytes
/
build_pb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
#
# build the protobuf classes from the data.proto. Note tested with
# protobuf 2.4.1. Current version is 2.5.0.
#
# Building:
#
# Running this script is only needed when the protobuf structures
# have change.
#
#project_base="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# which protoc that you built
#PROTOC_HOME=/usr/local/protobuf-2.4.1/
#PROTOC_HOME=/usr/local/protobuf-2.5.0/
#rm -r ${project_base}/generated/*
#$PROTOC_HOME/bin/protoc --proto_path=${project_base}/resources --java_out=${project_base}/generated ${project_base}/resources/comm.proto
SRC_DIR=/Users/shibai86/Documents/workspace/poke-netty/resources
#DST_DIR=/Users/shibai86/Documents/workspace/poke-netty
protoc -I=$SRC_DIR --java_out=/Users/shibai86/Documents/workspace/poke-netty/generated $SRC_DIR/comm.proto
protoc -I=$SRC_DIR --python_out=/Users/shibai86/Documents/workspace/poke-netty/python/src $SRC_DIR/comm.proto