RUNME 712 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. google/cloud/language/v1/language_service.proto \
  14. google/api/annotations.proto \
  15. google/api/http.proto \
  16. google/protobuf/descriptor.proto \
  17. -Igoogleapis \
  18. -I../common/include \
  19. --swift_out=googleapis \
  20. --swiftgrpc_out=googleapis
  21. # move Swift files to the Sources directory
  22. find googleapis -name "*.swift" -exec mv {} Sources \;