generate_descriptor_protos.sh 803 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. # Run this script to regenerate descriptor protos after the protocol compiler
  3. # changes.
  4. set -e
  5. if test ! -e src/google/protobuf/stubs/common.h; then
  6. cat >&2 << __EOF__
  7. Could not find source code. Make sure you are running this script from the
  8. root of the distribution tree.
  9. __EOF__
  10. exit 1
  11. fi
  12. pushd src
  13. ./protoc --php_out=internal:../php/src google/protobuf/descriptor.proto
  14. ./protoc --php_out=internal_generate_c_wkt:../php/src \
  15. google/protobuf/any.proto \
  16. google/protobuf/api.proto \
  17. google/protobuf/duration.proto \
  18. google/protobuf/empty.proto \
  19. google/protobuf/field_mask.proto \
  20. google/protobuf/source_context.proto \
  21. google/protobuf/struct.proto \
  22. google/protobuf/type.proto \
  23. google/protobuf/timestamp.proto \
  24. google/protobuf/wrappers.proto
  25. popd