Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1 | #!/usr/bin/env bash |
2 | |||||
3 | # Run this script to regenerate desriptor protos after the protocol compiler | ||||
4 | # changes. | ||||
5 | |||||
6 | if test ! -e src/google/protobuf/stubs/common.h; then | ||||
7 | cat >&2 << __EOF__ | ||||
8 | Could not find source code. Make sure you are running this script from the | ||||
9 | root of the distribution tree. | ||||
10 | __EOF__ | ||||
11 | exit 1 | ||||
12 | fi | ||||
13 | |||||
14 | pushd src | ||||
15 | ./protoc --php_out=internal:../php/src google/protobuf/descriptor.proto | ||||
16 | popd |