generate_descriptor_protos.sh 401 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # Run this script to regenerate descriptor protos after the protocol compiler
  3. # changes.
  4. if test ! -e src/google/protobuf/stubs/common.h; then
  5. cat >&2 << __EOF__
  6. Could not find source code. Make sure you are running this script from the
  7. root of the distribution tree.
  8. __EOF__
  9. exit 1
  10. fi
  11. pushd src
  12. ./protoc --php_out=internal:../php/src google/protobuf/descriptor.proto
  13. popd