mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
15 lines
234 B
Bash
15 lines
234 B
Bash
#!/bin/bash
|
|
|
|
if [ -L $0 ]
|
|
then
|
|
BASE_DIR=`dirname $(readlink $0)`
|
|
else
|
|
BASE_DIR=`dirname $0`
|
|
fi
|
|
base_path=$(cd $BASE_DIR/..; pwd)
|
|
|
|
cd $base_path && \
|
|
protoc -I ./proto \
|
|
--go_out=. \
|
|
--go-grpc_out=. \
|
|
./proto/**/*.proto |