Files
eiblog/pkg/proto/protoc.sh
2021-04-26 15:51:16 +08:00

12 lines
216 B
Bash
Executable File

#!/usr/bin/env sh
set -e
for file in */*.proto; do
if test -f $file; then
protoc --go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
$file;
fi
done