1#!/bin/sh 2 3set -xe 4 5old_revision=$(cat BORINGSSL_REVISION) 6rm -Rf src 7git clone https://boringssl.googlesource.com/boringssl src 8cd src 9new_revision=$(git show -s --pretty=%H) 10cd .. 11echo ${new_revision} > BORINGSSL_REVISION 12 13rm -Rf src/.git 14rm -Rf src/fuzz 15rm -Rf src/third_party/googletest 16rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/ 17python src/util/generate_build_files.py android 18python src/util/generate_build_files.py eureka 19cp src/LICENSE NOTICE 20 21git add . 22git commit -m "external/boringssl: Sync to ${new_revision}. 23 24This includes the following changes: 25 26https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} 27 28Test: atest CtsLibcoreTestCases (TODO) 29" 30