yats.git

ref: 332e2e2c1a41026a2a44e531325bdb2c2c2b6c19

utils/generate.sh


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#! /bin/bash -x


cd $(dirname $0)
TARGET_DIR="../server/proto/"

SOURCES="./yats-grpc.proto"

for s in ${SOURCES}; do
  protoc --go_out=${TARGET_DIR}\
  --go_opt=paths=source_relative\
  --go-grpc_out=${TARGET_DIR}\
  --go-grpc_opt=paths=source_relative\
  ${s}
done