update scripts

pull/21194/head
Muxi Yan 5 years ago
parent b5ec5e0b8b
commit d8348a9b97
  1. 4
      tools/distrib/check_copyright.py
  2. 8
      tools/distrib/generate_boringssl_prefix_header.sh

@ -92,6 +92,10 @@ _EXEMPT = frozenset((
# Designer-generated source
'examples/csharp/HelloworldXamarin/Droid/Resources/Resource.designer.cs',
'examples/csharp/HelloworldXamarin/iOS/ViewController.designer.cs',
# BoringSSL generated header. It has commit version information at the head
# of the file so we cannot check the license info.
'src/boringssl/boringssl_prefix_symbols.h',
))
RE_YEAR = r'Copyright (?P<first_year>[0-9]+\-)?(?P<last_year>[0-9]+) ([Tt]he )?gRPC [Aa]uthors(\.|)'

@ -15,8 +15,8 @@
# Generate the list of boringssl symbols that need to be renamed based on the
# current boringssl submodule. The script should be run after a boringssl
# upgrade in third_party/boringssl. Note that after the script is run, you will
# typically need to manually upgrade the BoringSSL-GRPC podspec
# upgrade in third_party/boringssl-with-bazel. Note that after the script is
# run, you will typically need to manually upgrade the BoringSSL-GRPC podspec
# (templates/src/objective-c/BoringSSL-GRPC.podspec.template) version and the
# corresponding version number in gRPC-Core podspec
# (templates/gRPC-Core.podspec.template).
@ -24,7 +24,7 @@
set -ev
cd "$(dirname $0)"
cd ../../third_party/boringssl
cd ../../third_party/boringssl-with-bazel
BORINGSSL_COMMIT=$(git rev-parse HEAD)
BORINGSSL_PREFIX_HEADERS_DIR=src/boringssl
@ -52,7 +52,7 @@ cd ../../..
mkdir -p $BORINGSSL_PREFIX_HEADERS_DIR
echo "// generated by generate_boringssl_prefix_header.sh on BoringSSL commit: $BORINGSSL_COMMIT" > $BORINGSSL_PREFIX_HEADERS_DIR/boringssl_prefix_symbols.h
echo "" >> $BORINGSSL_PREFIX_HEADERS_DIR/boringssl_prefix_symbols.h
cat third_party/boringssl/build/symbol_prefix_include/boringssl_prefix_symbols.h >> $BORINGSSL_PREFIX_HEADERS_DIR/boringssl_prefix_symbols.h
cat third_party/boringssl-with-bazel/build/symbol_prefix_include/boringssl_prefix_symbols.h >> $BORINGSSL_PREFIX_HEADERS_DIR/boringssl_prefix_symbols.h
# Regenerated the project
tools/buildgen/generate_projects.sh

Loading…
Cancel
Save