blob: 1f5b29e544d4e944e9b46606f46b7da967c5c799 [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)
Kenny Rootb8494592015-09-25 02:29:14 +000010cd ..
David Benjamin95add822016-10-19 01:09:12 -040011echo ${new_revision} > BORINGSSL_REVISION
12
Kenny Rootb8494592015-09-25 02:29:14 +000013rm -Rf src/.git
Adam Langleyfad63272015-11-12 12:15:39 -080014rm -Rf src/fuzz
David Benjaminf31229b2017-01-25 14:08:15 -050015rm -Rf src/third_party/googletest
Kenny Rootb8494592015-09-25 02:29:14 +000016rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/
Pete Bentleyd46fafb2019-08-19 17:00:14 +010017python src/util/generate_build_files.py android android-cmake eureka
David Benjamin2dff6252018-08-20 15:06:25 -050018cp src/LICENSE NOTICE
David Benjamin95add822016-10-19 01:09:12 -040019
20git add .
21git commit -m "external/boringssl: Sync to ${new_revision}.
22
23This includes the following changes:
24
25https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision}
Robert Sloan89678152019-03-12 14:24:00 -070026
27Test: atest CtsLibcoreTestCases (TODO)
David Benjamin95add822016-10-19 01:09:12 -040028"