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