-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from well-typed/edsko/cleanup-proto
Cleanup proto generation
- Loading branch information
Showing
39 changed files
with
139 additions
and
156 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/bin/bash | ||
|
||
## | ||
## grpc-spec, definitions from the main gRPC repo | ||
## | ||
|
||
for i in proto/official/grpc-spec/* | ||
do | ||
protoc \ | ||
--plugin=protoc-gen-haskell=`which proto-lens-protoc` \ | ||
--haskell_out=grpc-spec/proto \ | ||
--proto_path=proto/official/grpc-spec \ | ||
$i | ||
done | ||
|
||
## | ||
## test-grapesy, definitions from the main gRPC repo | ||
## | ||
|
||
for i in proto/official/test-grapesy/* | ||
do | ||
protoc \ | ||
--plugin=protoc-gen-haskell=`which proto-lens-protoc` \ | ||
--haskell_out=grapesy/proto \ | ||
--proto_path=proto/official/test-grapesy \ | ||
$i | ||
done | ||
|
||
## | ||
## test-grapesy, bespoke definitions | ||
## | ||
|
||
for i in proto/bespoke/test-grapesy/* | ||
do | ||
protoc \ | ||
--plugin=protoc-gen-haskell=`which proto-lens-protoc` \ | ||
--haskell_out=grapesy/proto \ | ||
--proto_path=proto/bespoke/test-grapesy \ | ||
$i | ||
done | ||
|
||
## | ||
## Disable some warnings in the generated modules, so that we can keep these | ||
## warnings enabled for the test suite. | ||
## | ||
|
||
for i in grpc-spec/proto/Proto/*.hs grapesy/proto/Proto/*.hs | ||
do | ||
sed -i '1i{-# OPTIONS_GHC -Wno-prepositive-qualified-module -Wno-identities #-}' $i | ||
done |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.