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.

29 lines
1.0 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. echo "proto files have been compiled"
  16. echo "checking out copied files"
  17. find proto/tendermint/ -name '*.proto' -not -path "*.intermediate"\
  18. | xargs -I {} git checkout {}
  19. find proto/tendermint/ -name '*.pb.go' \
  20. | xargs -I {} git checkout {}