mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 12:18:58 +00:00
76993057fd
* Rolling to V8 13.0.245.12 Co-authored-by: snek <the@snek.dev>
31 lines
716 B
Python
31 lines
716 B
Python
from v8_deps import deps
|
|
import subprocess
|
|
|
|
def process(name, dep):
|
|
if name == 'build':
|
|
# We have our own fork of this
|
|
return
|
|
|
|
url = dep if isinstance(dep, str) else dep['url']
|
|
rev = url.split('@')[1]
|
|
print(name, rev)
|
|
subprocess.run(['git', 'fetch', 'origin'], cwd=name)
|
|
subprocess.run(['git', 'checkout', rev], cwd=name)
|
|
|
|
failed = False
|
|
|
|
with open('.gitmodules') as f:
|
|
for line in f.readlines():
|
|
if line.startswith('['):
|
|
name = line.split(" ")[1][1:-3]
|
|
if name in deps:
|
|
try:
|
|
process(name, deps[name])
|
|
except:
|
|
failed = True
|
|
|
|
if failed:
|
|
import sys
|
|
sys.exit(1)
|
|
|