diff options
author | Muxi Yan <mxyan@google.com> | 2018-06-13 09:34:19 -0700 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-06-13 09:35:37 -0700 |
commit | 358c625ce52ac711ecbe5a4d42a1c0ba0dea2e7c (patch) | |
tree | a717cd190206ac387353185f355366b61e688e7f /templates/gRPC-C++.podspec.template | |
parent | ebb23c6e69628c61b531a591f5bf076f0e40b6d2 (diff) |
Update C++ podspec
Diffstat (limited to 'templates/gRPC-C++.podspec.template')
-rw-r--r-- | templates/gRPC-C++.podspec.template | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/gRPC-C++.podspec.template b/templates/gRPC-C++.podspec.template index 12d5fc17d4..2853bb63ab 100644 --- a/templates/gRPC-C++.podspec.template +++ b/templates/gRPC-C++.podspec.template @@ -196,9 +196,9 @@ end s.prepare_command = <<-END_OF_COMMAND - find src/cpp/ -type f -exec sed -E -i'.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\; - find src/cpp/ -name "*.back" -type f -delete - find src/core/ -regex ".*\.h" -type f -exec sed -E -i'.back' 's;#include "third_party/nanopb/(.*)";#include <nanopb/\\1>;g' {} \\\; - find src/core/ -name "*.back" -type f -delete + find src/cpp/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g' + find src/cpp/ -type f -path '*.grpc_back' -print0 | xargs -0 rm + find src/core/ -type f ! -path '*.grpc_back' -print0 | xargs -0 -L1 sed -E -i'.grpc_back' 's;#include "(pb(_.*)?\\.h)";#include <nanopb/\\1>;g' + find src/core/ -type f -path '*.grpc_back' -print0 | xargs -0 rm END_OF_COMMAND end |