mirror of
https://github.com/mailgun/groupcache.git
synced 2024-11-16 23:10:53 +00:00
17 lines
286 B
Bash
Executable File
17 lines
286 B
Bash
Executable File
#! /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=. \
|
|
$PROTO_DIR/example.proto && mv ./example.pb.go ./example_pb_test.go
|