David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -xe |
| 4 | |
| 5 | old_revision=$(cat BORINGSSL_REVISION) |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 6 | rm -Rf src |
| 7 | git clone https://boringssl.googlesource.com/boringssl src |
| 8 | cd src |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 9 | new_revision=$(git show -s --pretty=%H) |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 10 | cd .. |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 11 | echo ${new_revision} > BORINGSSL_REVISION |
| 12 | |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 13 | rm -Rf src/.git |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 14 | rm -Rf src/fuzz |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 15 | rm -Rf src/third_party/googletest |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 16 | rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/ |
Pete Bentley | d46fafb | 2019-08-19 17:00:14 +0100 | [diff] [blame] | 17 | python src/util/generate_build_files.py android android-cmake eureka |
David Benjamin | 2dff625 | 2018-08-20 15:06:25 -0500 | [diff] [blame] | 18 | cp src/LICENSE NOTICE |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 19 | |
| 20 | git add . |
| 21 | git commit -m "external/boringssl: Sync to ${new_revision}. |
| 22 | |
| 23 | This includes the following changes: |
| 24 | |
| 25 | https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} |
Robert Sloan | 8967815 | 2019-03-12 14:24:00 -0700 | [diff] [blame] | 26 | |
| 27 | Test: atest CtsLibcoreTestCases (TODO) |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 28 | " |