blob: f95b9d5894dd7c119747fa17c8f6ec8a78861379 [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/
17python src/util/generate_build_files.py android
Bailey Forrest90baa4f2017-10-06 13:11:43 -070018python src/util/generate_build_files.py eureka
David Benjamin2dff6252018-08-20 15:06:25 -050019cp src/LICENSE NOTICE
David Benjamin95add822016-10-19 01:09:12 -040020
21git add .
22git commit -m "external/boringssl: Sync to ${new_revision}.
23
24This includes the following changes:
25
26https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision}
27"