You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

  1. #!/usr/bin/env bash
  2. # This file was added during development of ABCI++. This file is a script to allow
  3. # the intermediate proto files to be built while active development proceeds
  4. # on ABCI++.
  5. # This file should be removed when work on ABCI++ is complete.
  6. # For more information, see https://github.com/tendermint/tendermint/issues/8066.
  7. set -euo pipefail
  8. cp ./proto/tendermint/abci/types.proto.intermediate ./proto/tendermint/abci/types.proto
  9. cp ./proto/tendermint/types/types.proto.intermediate ./proto/tendermint/types/types.proto
  10. MODNAME="$(go list -m)"
  11. find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" \
  12. -exec sh ./scripts/protopackage.sh {} "$MODNAME" ';'
  13. sh ./scripts/protopackage.sh ./proto/tendermint/abci/types.proto $MODNAME "abci/types"
  14. make proto-gen
  15. mv ./proto/tendermint/abci/types.pb.go ./abci/types
  16. echo "proto files have been compiled"
  17. echo "checking out copied files"
  18. find proto/tendermint/ -name '*.proto' -not -path "*.intermediate"\
  19. | xargs -I {} git checkout {}
  20. find proto/tendermint/ -name '*.pb.go' \
  21. | xargs -I {} git checkout {}