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