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) 10msgfile=$(mktemp) 11 12echo "external/boringssl: Sync to ${new_revision}. 13 14This includes the following changes: 15 16https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} 17" > $msgfile 18 19# Just pull out commit titles and any Update-Note paragraphs for AOSP commit summary 20git log --format='format:* %s%n%n%b' ${old_revision}..${new_revision} \ 21 | awk -v RS='' -v ORS='\n' '/^Update-Note/ {print} /^\*/ {print}' \ 22 >> $msgfile 23 24 25cd .. 26echo " 27Test: atest CtsLibcoreTestCases CtsLibcoreOkHttpTestCases" >> $msgfile 28echo ${new_revision} > BORINGSSL_REVISION 29 30rm -Rf src/.git 31rm -Rf src/fuzz 32rm -Rf src/third_party/googletest 33rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/ 34python src/util/generate_build_files.py android android-cmake bazel eureka 35cp src/LICENSE NOTICE 36 37git add . 38git commit -F $msgfile 39rm -f $msgfile 40