diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-07-13 03:24:07 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-07-21 13:04:11 -0400 |
commit | 5d1cb542617f3e9651f472eb21d11594fba397c0 (patch) | |
tree | 8b7372ec46b373681f76588a711e82b68b98c353 /tools/run_hooks.py | |
parent | 3563638693fa2736fd86f4cae711a276b548050b (diff) |
Add deno_third_party as git submodule.
Diffstat (limited to 'tools/run_hooks.py')
-rwxr-xr-x | tools/run_hooks.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/run_hooks.py b/tools/run_hooks.py new file mode 100755 index 000000000..2ec671186 --- /dev/null +++ b/tools/run_hooks.py @@ -0,0 +1,29 @@ +#!/usr/bin/env python +import os +import sys +from util import run + +root_path = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) +third_party_path = os.path.join(root_path, "third_party") +depot_tools_path = os.path.join(third_party_path, "depot_tools") +os.chdir(root_path) + + +def download(fn): + run([ + os.path.join(depot_tools_path + '/download_from_google_storage.py'), + '--no_resume', '--platform=' + sys.platform, '--no_auth', '--bucket', + 'chromium-gn', '-s', + os.path.join(root_path, fn) + ], + quiet=True) + + +if sys.platform == 'win32': + download("third_party/v8/buildtools/win/gn.exe.sha1") +elif sys.platform == 'darwin': + download("third_party/v8/buildtools/mac/gn.sha1") +elif sys.platform.startswith('linux'): + download("third_party/v8/buildtools/linux64/gn.sha1") +run(['python', 'third_party/v8/tools/clang/scripts/update.py', '--if-needed'], + quiet=True) |