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) |
Pete Bentley | 92cab21 | 2020-09-22 17:59:38 +0100 | [diff] [blame] | 10 | msgfile=$(mktemp) |
Pete Bentley | f23caaf | 2020-09-22 18:02:11 +0100 | [diff] [blame] | 11 | |
| 12 | echo "external/boringssl: Sync to ${new_revision}. |
| 13 | |
| 14 | This includes the following changes: |
| 15 | |
| 16 | https://boringssl.googlesource.com/boringssl/+log/${old_revision}..${new_revision} |
Pete Bentley | 92cab21 | 2020-09-22 17:59:38 +0100 | [diff] [blame] | 17 | " > $msgfile |
Pete Bentley | f23caaf | 2020-09-22 18:02:11 +0100 | [diff] [blame] | 18 | |
| 19 | # Just pull out commit titles and any Update-Note paragraphs for AOSP commit summary |
| 20 | git log --format='format:* %s%n%n%b' ${old_revision}..${new_revision} \ |
| 21 | | awk -v RS='' -v ORS='\n' '/^Update-Note/ {print} /^\*/ {print}' \ |
Pete Bentley | 92cab21 | 2020-09-22 17:59:38 +0100 | [diff] [blame] | 22 | >> $msgfile |
Pete Bentley | f23caaf | 2020-09-22 18:02:11 +0100 | [diff] [blame] | 23 | |
| 24 | |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 25 | cd .. |
Pete Bentley | f23caaf | 2020-09-22 18:02:11 +0100 | [diff] [blame] | 26 | echo " |
Pete Bentley | 92cab21 | 2020-09-22 17:59:38 +0100 | [diff] [blame] | 27 | Test: atest CtsLibcoreTestCases CtsLibcoreOkHttpTestCases" >> $msgfile |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 28 | echo ${new_revision} > BORINGSSL_REVISION |
| 29 | |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 30 | rm -Rf src/.git |
Adam Langley | fad6327 | 2015-11-12 12:15:39 -0800 | [diff] [blame] | 31 | rm -Rf src/fuzz |
David Benjamin | f31229b | 2017-01-25 14:08:15 -0500 | [diff] [blame] | 32 | rm -Rf src/third_party/googletest |
Kenny Root | b849459 | 2015-09-25 02:29:14 +0000 | [diff] [blame] | 33 | rm -Rf linux-aarch64/ linux-arm/ linux-x86/ linux-x86_64/ mac-x86/ mac-x86_64/ win-x86_64/ win-x86/ |
Justin Paupore | 6aedb26 | 2021-01-29 09:32:17 +0000 | [diff] [blame] | 34 | python src/util/generate_build_files.py android android-cmake bazel eureka |
David Benjamin | 2dff625 | 2018-08-20 15:06:25 -0500 | [diff] [blame] | 35 | cp src/LICENSE NOTICE |
David Benjamin | 95add82 | 2016-10-19 01:09:12 -0400 | [diff] [blame] | 36 | |
| 37 | git add . |
Pete Bentley | 8bb65ff | 2021-09-23 10:49:18 +0100 | [diff] [blame] | 38 | git commit --no-verify -F $msgfile |
Pete Bentley | 92cab21 | 2020-09-22 17:59:38 +0100 | [diff] [blame] | 39 | rm -f $msgfile |