-
Notifications
You must be signed in to change notification settings - Fork 1
/
UPDATING
executable file
·39 lines (29 loc) · 1.04 KB
/
UPDATING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -xe
old_revision=$(cat BORINGSSL_REVISION)
rm -Rf src
git clone https://boringssl.googlesource.com/boringssl src
cd src
new_revision=$(git show -s --pretty=%H)
msgfile=$(mktemp)
echo "external/boringssl: Sync to ${new_revision}.
This includes the following changes:
https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision}
" > $msgfile
# Just pull out commit titles and any Update-Note paragraphs for AOSP commit summary
git log --format='format:* %s%n%n%b' ${old_revision}..${new_revision} \
| awk -v RS='' -v ORS='\n' '/^Update-Note/ {print} /^\*/ {print}' \
>> $msgfile
cd ..
echo "
Test: atest CtsLibcoreTestCases CtsLibcoreOkHttpTestCases" >> $msgfile
echo ${new_revision} > BORINGSSL_REVISION
rm -Rf src/.git
rm -Rf src/fuzz
rm -Rf src/third_party/googletest
rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/
python src/util/generate_build_files.py android android-cmake bazel eureka
cp src/LICENSE NOTICE
git add .
git commit -F $msgfile
rm -f $msgfile