0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00
denoland-rusty-v8/tools/upgrade_v8.sh
Bert Belder e88ea4ad01
Downgrade to V8 8.6.334 again (#447)
After the upgrade some Deno tests started crashing somewhere deep inside
V8, and the cause of these crashes is unclear.

This reverts the following commits:
* 12334ffe Upgrade gn to 6f13aaac; make BUILD.gn compatible with it (#443)
* f53f10d4 Upgrade V8 to 8.7.25 (#443)
2020-08-28 17:52:05 +02:00

19 lines
1.2 KiB
Bash

# WARNING: This is not an automated tool! This is just some commands to copy and
# paste manually to upgrade V8.
export BRANCH=20200806_rusty_v8
export COMMITDATE=2020-08-05T17:03:41.000Z
git submodule update -f
git submodule foreach 'git remote rm upstream; true' &&
git -C build remote add upstream https://chromium.googlesource.com/chromium/src/build &&
git -C buildtools remote add upstream https://chromium.googlesource.com/chromium/src/buildtools &&
git submodule foreach '[ -f ./include/v8.h ] || (git remote add upstream `git remote get-url origin`; true)' &&
git submodule foreach '[ -f ./include/v8.h ] || git remote update' &&
git submodule foreach '[ -f ./include/v8.h ] || (export SHA=`git log upstream/master -n1 --until=$COMMITDATE --pretty=%H` && git merge $SHA -m "Merge commit $SHA from `git remote get-url upstream`")'
git -C build push git@github.com:denoland/chromium_build HEAD:refs/heads/$BRANCH
git -C buildtools push git@github.com:denoland/chromium_buildtools HEAD:refs/heads/$BRANCH
git -C build push git@github.com:denoland/chromium_build upstream/master:refs/heads/upstream
git -C buildtools push git@github.com:denoland/chromium_buildtools upstream/master:refs/heads/upstream