yats-connectors.git

ref: 8c8cbb6db9433615f303e7f901ed3b14b82fe159

./make-server-lib.sh


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

cd $(dirname $0)

YATS_SERVER_SOURCES=../yats/server
SOURCES="yats-grpc.proto"

TARGET_DIR="${YATS_SERVER_SOURCES}/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