Skip to content

Commit

Permalink
appease shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
glbrntt committed Nov 29, 2024
1 parent 957e122 commit 9927da8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions .licenseignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ def/protos/local/*
.unacceptablelanguageignore
LICENSE
**/*.swift
*.pb
21 changes: 12 additions & 9 deletions dev/protos/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,30 @@ function invoke_protoc {
#- DESCRIPTOR SETS ------------------------------------------------------------

function generate_test_service_descriptor_set {
local proto="$here/local/test-service.proto"
local proto_path="$(dirname $proto)"
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/test-service.pb"
local proto proto_path output
proto="$here/local/test-service.proto"
proto_path="$(dirname "$proto")"
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/test-service.pb"

invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" --include_source_info
}

function generate_foo_service_descriptor_set {
local proto="$here/local/foo-service.proto"
local proto_path="$(dirname $proto)"
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/foo-service.pb"
local proto proto_path output
proto="$here/local/foo-service.proto"
proto_path="$(dirname "$proto")"
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/foo-service.pb"

invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" \
--include_source_info \
--include_imports
}

function generate_bar_service_descriptor_set {
local proto="$here/local/bar-service.proto"
local proto_path="$(dirname $proto)"
local output="$root/Tests/GRPCProtobufCodeGenTests/Generated/bar-service.pb"
local proto proto_path output
proto="$here/local/bar-service.proto"
proto_path="$(dirname "$proto")"
output="$root/Tests/GRPCProtobufCodeGenTests/Generated/bar-service.pb"

invoke_protoc --descriptor_set_out="$output" "$proto" -I "$proto_path" \
--include_source_info \
Expand Down

0 comments on commit 9927da8

Please sign in to comment.