groupcache/proto.sh

17 lines
286 B
Bash
Raw Normal View History

2019-04-09 22:36:47 +00:00
#! /bin/sh
# Make sure the script fails fast.
set -e
set -u
set -x
PROTO_DIR=groupcachepb
protoc -I=$PROTO_DIR \
--go_out=$PROTO_DIR \
$PROTO_DIR/groupcache.proto
protoc -I=$PROTO_DIR \
--go_out=. \
2024-04-16 16:05:12 +00:00
$PROTO_DIR/example.proto && mv ./example.pb.go ./example_pb_test.go