xref: /third_party/protobuf/php/tests/generate_protos.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/protobuf/php/tests/
1ffe3c632Sopenharmony_ci#!/bin/bash
2ffe3c632Sopenharmony_ci
3ffe3c632Sopenharmony_ciset -ex
4ffe3c632Sopenharmony_ci
5ffe3c632Sopenharmony_cicd `dirname $0`
6ffe3c632Sopenharmony_ci
7ffe3c632Sopenharmony_cirm -rf generated
8ffe3c632Sopenharmony_cimkdir -p generated
9ffe3c632Sopenharmony_ci
10ffe3c632Sopenharmony_cifind proto -type f -name "*.proto"| xargs ../../src/protoc --experimental_allow_proto3_optional --php_out=generated -I../../src -I.
11ffe3c632Sopenharmony_ci
12ffe3c632Sopenharmony_ciif [ "$1" = "--aggregate_metadata" ]; then
13ffe3c632Sopenharmony_ci  # Overwrite some of the files to use aggregation.
14ffe3c632Sopenharmony_ci  AGGREGATED_FILES="proto/test.proto proto/test_include.proto proto/test_import_descriptor_proto.proto"
15ffe3c632Sopenharmony_ci  ../../src/protoc --experimental_allow_proto3_optional --php_out=aggregate_metadata=foo#bar:generated -I../../src -I. $AGGREGATED_FILES
16ffe3c632Sopenharmony_cifi
17

Indexes created Thu Nov 07 10:32:03 CST 2024