Version: 0.0.10.2.40.2.200.2.210.2.220.2.230.2.240.5.110.5.120.5.130.5.140.5.150.5.160.5.170.5.180.5.210.5.220.5.230.5.240.5.250.5.260.6.10.6.20.6.30.6.40.6.60.6.70.6.90.6.100.6.110.6.120.6.130.6.150.6.160.6.170.7.10.7.20.7.30.7.40.7.50.7.60.7.70.7.80.7.90.7.100.7.110.7.120.9.10.9.20.9.30.11.00.11.10.11.20.11.30.11.40.11.50.11.60.11.70.11.80.11.100.11.110.11.120.11.140.11.150.11.160.11.220.11.230.11.240.11.250.11.280.11.290.11.300.11.310.11.330.11.340.11.350.11.360.11.370.11.380.11.390.11.400.11.410.11.420.13.10.13.20.13.30.13.40.13.50.13.60.13.70.13.80.13.90.15.00.15.20.15.30.15.40.15.50.15.60.16.10.16.20.16.30.16.40.16.50.17.00.17.10.17.20.17.30.17.40.18.00.18.10.18.20.18.30.18.70.18.80.18.100.18.110.18.12
#!/usr/bin/env bash
set -e
shopt -s globstar
#
# Python Import Class With Same Name as Directory
# https://stackoverflow.com/q/16245106/1123955
# Directory to write generated code to (.js and .d.ts files)
OUT_DIR="./src/chatie_grpc"
[ -d ${OUT_DIR} ] || {
mkdir -p ${OUT_DIR}
}
./merge-proto.sh > "$OUT_DIR/chatie-grpc.proto"
PROTO_DIR="$OUT_DIR"
PROTOC_CMD="python3 -m grpc_tools.protoc --proto_path=${PROTO_DIR} --proto_path=/usr/local/include/ ${PROTO_DIR}/**/*.proto"
$PROTOC_CMD \
--python_betterproto_out=${OUT_DIR}