blob: 97039329fc9cfa081a541fe4d2802eccdf3e0116 [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
David Benjamin95add822016-10-19 01:09:12 -040018
19git add .
20git commit -m "external/boringssl: Sync to ${new_revision}.
21
22This includes the following changes:
23
24https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision}
25"