#! /bin/bash -x cd $(dirname $0) TARGET_DIR="../server/crudpb/" SOURCES="metric.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\ metric.proto done