| #!/bin/sh |
| |
| set -xe |
| |
| old_revision=$(cat BORINGSSL_REVISION) |
| rm -Rf src |
| git clone https://boringssl.googlesource.com/boringssl src |
| cd src |
| new_revision=$(git show -s --pretty=%H) |
| cd .. |
| echo ${new_revision} > BORINGSSL_REVISION |
| |
| rm -Rf src/.git |
| rm -Rf src/fuzz |
| rm -Rf src/third_party/googletest |
| rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/ |
| python src/util/generate_build_files.py android |
| |
| git add . |
| git commit -m "external/boringssl: Sync to ${new_revision}. |
| |
| This includes the following changes: |
| |
| https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} |
| " |
| |
| ################################# |
| ########### IMPORTANT############ |
| ################################# |
| # |
| # Move e3aad7c37bbb6d61f56ae7f3106f1907e9be67e7 (or a copy of it) to |
| # tip-of-tree. This is required so long as nest cameras use p224 certs or until |
| # we sync with upstream boringssl past 764ab9802e775cd5f96b8585fb540cbf8f8bdd7f, |
| # at which point we can leverage their p224 changes. |
| # |
| # git rebase -i e3aad7c37bbb6d61f56ae7f3106f1907e9be67e7^ |