Browse Source

update abci-gen script for rename

pull/8065/head
William Banfield 3 years ago
parent
commit
30ebc880c4
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      scripts/abci-gen.sh

+ 3
- 6
scripts/abci-gen.sh 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 {}


Loading…
Cancel
Save