0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-28 01:59:12 -05:00
denoland-rusty-v8/tools/upgrade_v8.sh
2020-05-06 03:48:19 +02:00

15 lines
910 B
Bash

# WARNING: This is not an automated tool! This is just some commands to copy and
# paste manually to upgrade V8.
export BRANCH=20200605_rusty_v8
export COMMITDATE=2020-05-05T17:39:10.000Z
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 'git remote add upstream `git remote get-url origin`; true' &&
git submodule foreach 'git remote update' &&
git submodule foreach '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