You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
606 B
Bash

#!/bin/sh
set -ex
# Build shared
if test -d /code/shared/proto; then
for proto in $(find /code/shared/proto -type f -name '*.proto' -print0 | xargs -0); do
cd $(dirname ${proto})
protoc -I/code --proto_path=$GOPATH/bin:. --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename ${proto})
done
fi
for proto in $(find /code/service -type f -name '*.proto' -print0 | xargs -0); do
cd $(dirname ${proto})
protoc -I/code --proto_path=$GOPATH/bin:. --micro_out=paths=source_relative:. --go_out=paths=source_relative:. $(basename ${proto})
done
cd /code