1ffe3c632Sopenharmony_ci#!/usr/bin/env bash 2ffe3c632Sopenharmony_ci 3ffe3c632Sopenharmony_ci# Run this script to regenerate descriptor protos after the protocol compiler 4ffe3c632Sopenharmony_ci# changes. 5ffe3c632Sopenharmony_ci 6ffe3c632Sopenharmony_ciif test ! -e src/google/protobuf/stubs/common.h; then 7ffe3c632Sopenharmony_ci cat >&2 << __EOF__ 8ffe3c632Sopenharmony_ciCould not find source code. Make sure you are running this script from the 9ffe3c632Sopenharmony_ciroot of the distribution tree. 10ffe3c632Sopenharmony_ci__EOF__ 11ffe3c632Sopenharmony_ci exit 1 12ffe3c632Sopenharmony_cifi 13ffe3c632Sopenharmony_ci 14ffe3c632Sopenharmony_cipushd src 15ffe3c632Sopenharmony_ci./protoc --php_out=internal:../php/src google/protobuf/descriptor.proto 16ffe3c632Sopenharmony_cipopd 17