update abci-gen script for rename

This commit is contained in:
William Banfield
2022-03-03 12:30:35 -05:00
parent c308c9b63d
commit 30ebc880c4
+3 -6
View File
@@ -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 {}