blob: 9feaa96c8b51e4f078e58d5db0250038f93e9f47 [file] [log] [blame]
Paul Yang6b27c1f2017-03-17 11:08:06 -07001#!/usr/bin/env bash
2
Brian Wignalla104dff2020-01-08 13:18:20 -05003# Run this script to regenerate descriptor protos after the protocol compiler
Paul Yang6b27c1f2017-03-17 11:08:06 -07004# changes.
5
Joshua Habermanec4b1942020-10-05 22:27:56 -07006set -e
7
Paul Yang6b27c1f2017-03-17 11:08:06 -07008if test ! -e src/google/protobuf/stubs/common.h; then
9 cat >&2 << __EOF__
10Could not find source code. Make sure you are running this script from the
11root of the distribution tree.
12__EOF__
13 exit 1
14fi
15
16pushd src
17./protoc --php_out=internal:../php/src google/protobuf/descriptor.proto
Joshua Habermanec4b1942020-10-05 22:27:56 -070018./protoc --php_out=internal_generate_c_wkt:../php/src \
Joshua Habermancfc0c2b2020-10-05 22:24:34 -070019 google/protobuf/any.proto \
20 google/protobuf/api.proto \
21 google/protobuf/duration.proto \
22 google/protobuf/empty.proto \
23 google/protobuf/field_mask.proto \
24 google/protobuf/source_context.proto \
25 google/protobuf/struct.proto \
26 google/protobuf/type.proto \
27 google/protobuf/timestamp.proto \
28 google/protobuf/wrappers.proto
Paul Yang6b27c1f2017-03-17 11:08:06 -070029popd