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 18 19git add . 20git commit -m "external/boringssl: Sync to ${new_revision}. 21 22This includes the following changes: 23 24https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} 25" 26