fix createProtobufs.sh script
This commit is contained in:
1 parent
684a9f6a99
commit
3b0a44e1be
1 file changed
+8
-12
@@ -1,19 +1,15 @@
|
||||
rm ../pybullet.pb.cpp
|
||||
rm ../pybullet.pb.h
|
||||
rm ../pybullet.grpc.pb.cpp
|
||||
rm ../pybullet.grpc.pb.h
|
||||
rm pybullet.pb.cpp
|
||||
rm pybullet.pb.h
|
||||
rm pybullet.grpc.pb.cpp
|
||||
rm pybullet.grpc.pb.h
|
||||
|
||||
protoc --proto_path=. --cpp_out=. pybullet.proto
|
||||
protoc --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` --grpc_out=. pybullet.proto
|
||||
mv pybullet.grpc.pb.cc ../pybullet.grpc.pb.cpp
|
||||
mv pybullet.grpc.pb.h ../pybullet.grpc.pb.h
|
||||
mv pybullet.pb.cc ../pybullet.pb.cpp
|
||||
mv pybullet.pb.h ../pybullet.pb.h
|
||||
mv pybullet.grpc.pb.cc pybullet.grpc.pb.cpp
|
||||
mv pybullet.pb.cc pybullet.pb.cpp
|
||||
|
||||
rm ../pybullet_pb2.py
|
||||
rm ../pybullet_pb2_grpc.py
|
||||
rm pybullet_pb2.py
|
||||
rm pybullet_pb2_grpc.py
|
||||
|
||||
protoc --proto_path=. --python_out=. pybullet.proto
|
||||
python -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. pybullet.proto
|
||||
mv pybullet_pb2.py ../pybullet_pb2.py
|
||||
mv pybullet_pb2_grpc.py ../pybullet_pb2_grpc.py
|
||||
Reference in new issue
Block a user