File: protomgmtc.sh

package info (click to toggle)
fever 1.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,100 kB
  • sloc: sh: 41; makefile: 18
file content (14 lines) | stat: -rwxr-xr-x 362 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! /usr/bin/env bash

# this path has to contain protobuf's well-known types 
WELL_KNOWN_TYPES="thirdparty"
# this is the mgmt project's root path 
MGMT_PATH=mgmt

find ${MGMT_PATH} -name "*.pb.go" -delete

protoc \
    --proto_path="${WELL_KNOWN_TYPES}" \
    --proto_path="${MGMT_PATH}" \
	--go_out=plugins=grpc:${GOPATH}/src \
        ${MGMT_PATH}/mgmt.proto