RUNME 730 B

12345678910111213141516171819202122232425
  1. #!/bin/sh
  2. #
  3. # Use this script to regenerate the Protocol Buffer and gRPC files
  4. # needed to build the example.
  5. #
  6. # Note that it requires updated protoc, protoc-gen-swift, and
  7. # protoc-gen-swiftgrpc binaries and assumes that protoc-gen-swift
  8. # is installed in $HOME/local/bin.
  9. if [ ! -d "googleapis" ]; then
  10. git clone http://github.com/googleapis/googleapis
  11. fi
  12. protoc \
  13. googleapis/google/datastore/v1/datastore.proto \
  14. googleapis/google/datastore/v1/entity.proto \
  15. googleapis/google/datastore/v1/query.proto \
  16. googleapis/google/type/latlng.proto \
  17. -Igoogleapis \
  18. --swift_out=googleapis \
  19. --swiftgrpc_out=googleapis
  20. # move Swift files to the Sources directory
  21. find googleapis -name "*.swift" -exec mv {} Sources \;