Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 16 lines 612 B view raw
1#!/usr/bin/env bash 2set -e 3# osx has an old version of bash and won't allow globstars. 4# Check if we're on macOS and not already running zsh 5if [[ "$OSTYPE" == "darwin"* ]] && [[ -z "$ZSH_VERSION" ]] && command -v zsh >/dev/null 2>&1; then 6 echo "Detected macOS, switching to zsh..." 7 exec zsh "$0" "$@" 8fi 9 10shopt -s globstar 2>/dev/null || true 11# change to directory of script 12cd "$(dirname "$0")" 13 14glob=(./proto/osprey/**/*.proto) 15# Generate protobuf files 16uv run -m grpc_tools.protoc --proto_path=proto --python_out=osprey_rpc/src --mypy_out=osprey_rpc/src --grpc_python_out=osprey_rpc/src "${glob[@]}"