|
|
@ -1,11 +1,8 @@ |
|
|
|
#!/usr/bin/env bash |
|
|
|
set -euo pipefail |
|
|
|
|
|
|
|
cp ./proto/intermediate/abci/types.proto ./proto/tendermint/abci/types.proto |
|
|
|
sed -i 's/package intermediate\./package tendermint\./g' ./proto/tendermint/abci/types.proto |
|
|
|
|
|
|
|
cp ./proto/intermediate/types/types.proto ./proto/tendermint/types/types.proto |
|
|
|
sed -i 's/package intermediate\./package tendermint\./g' ./proto/tendermint/types/types.proto |
|
|
|
cp ./proto/tendermint/abci/types.proto.intermediate ./proto/tendermint/abci/types.proto |
|
|
|
cp ./proto/tendermint/types/types.proto.intermediate ./proto/tendermint/types/types.proto |
|
|
|
|
|
|
|
MODNAME="$(go list -m)" |
|
|
|
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" -not -path "./proto/intermediate" \ |
|
|
@ -19,7 +16,7 @@ mv ./proto/tendermint/abci/types.pb.go ./abci/types |
|
|
|
|
|
|
|
echo "proto files have been compiled" |
|
|
|
|
|
|
|
echo "removing copied files" |
|
|
|
echo "checking out copied files" |
|
|
|
|
|
|
|
find proto/tendermint/ -name '*.proto' \ |
|
|
|
| xargs -I {} git checkout {} |
|
|
|