blob: 0266bfaa39d57606f959b7e84007c89b2b4e19cb [file] [log] [blame]
David Benjamin95add822016-10-19 01:09:12 -04001#!/bin/sh
2
3set -xe
4
5old_revision=$(cat BORINGSSL_REVISION)
Kenny Rootb8494592015-09-25 02:29:14 +00006rm -Rf src
7git clone https://boringssl.googlesource.com/boringssl src
8cd src
David Benjamin95add822016-10-19 01:09:12 -04009new_revision=$(git show -s --pretty=%H)
Pete Bentley92cab212020-09-22 17:59:38 +010010msgfile=$(mktemp)
Pete Bentleyf23caaf2020-09-22 18:02:11 +010011
12echo "external/boringssl: Sync to ${new_revision}.
13
14This includes the following changes:
15
16https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision}
Pete Bentley92cab212020-09-22 17:59:38 +010017" > $msgfile
Pete Bentleyf23caaf2020-09-22 18:02:11 +010018
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}' \
Pete Bentley92cab212020-09-22 17:59:38 +010022 >> $msgfile
Pete Bentleyf23caaf2020-09-22 18:02:11 +010023
24
Kenny Rootb8494592015-09-25 02:29:14 +000025cd ..
Pete Bentleyf23caaf2020-09-22 18:02:11 +010026echo "
Pete Bentley92cab212020-09-22 17:59:38 +010027Test: atest CtsLibcoreTestCases CtsLibcoreOkHttpTestCases" >> $msgfile
David Benjamin95add822016-10-19 01:09:12 -040028echo ${new_revision} > BORINGSSL_REVISION
29
Kenny Rootb8494592015-09-25 02:29:14 +000030rm -Rf src/.git
Adam Langleyfad63272015-11-12 12:15:39 -080031rm -Rf src/fuzz
David Benjaminf31229b2017-01-25 14:08:15 -050032rm -Rf src/third_party/googletest
Kenny Rootb8494592015-09-25 02:29:14 +000033rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/
Justin Paupore6aedb262021-01-29 09:32:17 +000034python src/util/generate_build_files.py android android-cmake bazel eureka
David Benjamin2dff6252018-08-20 15:06:25 -050035cp src/LICENSE NOTICE
David Benjamin95add822016-10-19 01:09:12 -040036
37git add .
Pete Bentley8bb65ff2021-09-23 10:49:18 +010038git commit --no-verify -F $msgfile
Pete Bentley92cab212020-09-22 17:59:38 +010039rm -f $msgfile