-
Notifications
You must be signed in to change notification settings - Fork 2
/
update-upstream.sh
executable file
·34 lines (29 loc) · 1.34 KB
/
update-upstream.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.
current_branch=`git symbolic-ref --short HEAD`
git remote add upstream https://github.com/domokit/mojo
git fetch upstream
git checkout -b upstream-master --track upstream/master
git checkout upstream-master
git pull
git subtree split --prefix mojo/public/tools/bindings -b upstream-bindings
git subtree split --prefix mojo/public/python -b upstream-python
git subtree split --prefix mojo/public/third_party -b upstream-third_party
git checkout $current_branch
git subtree merge -m "merge upstream" --prefix lib/public/tools/bindings upstream-bindings
git subtree merge -m "merge upstream" --prefix lib/public/python upstream-python
git subtree merge -m "merge upstream" --prefix lib/public/third_party upstream-third_party
# The following downloads require depot_tools.
download_from_google_storage.py \
--no_resume \
--quiet \
--no_auth \
--bucket mojo/mojom_parser/linux64 \
-s lib/public/tools/bindings/mojom_parser/bin/linux64/mojom_parser.sha1
download_from_google_storage.py \
--no_resume \
--quiet \
--no_auth \
--bucket mojo/mojom_parser/mac64 \
-s lib/public/tools/bindings/mojom_parser/bin/mac64/mojom_parser.sha1