| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | # Copyright 2018 gRPC authors. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | # Check if the current BoringSSL prefix symbols is up to date |
| 17 | set -e |
| 18 | |
| 19 | cd "$(dirnamescip-shell system . . dirname. $0)" |
| 20 | cd ../../third_party/boringssl-with-bazel |
| 21 | |
| 22 | BORINGSSL_COMMIT=$(gitscip-shell system . . git. rev-parse HEAD) |
| 23 | PREFIX_SYMBOLS_COMMIT=$(catscip-shell system . . cat. ../../src/boringssl/boringssl_prefix_symbols.h | headscip-shell system . . head. -n1 | awkscip-shell system . . awk. '{print $NF}') |
| 24 | |
| 25 | [scip-shell system . . `[`. $BORINGSSL_COMMIT == $PREFIX_SYMBOLS_COMMIT ] || { echoscip-shell system . . echo. "The BoringSSL commit does not match the commit of the prefix symbols (src/boringssl/boringssl_prefix_symbols.h). Run tools/distrib/generate_boringssl_prefix_header.sh to update the prefix symbols." ; exit 1 ; } |
| 26 | |
| 27 | exit 0 |