2 # This is a *very* minimal version of gclient (which can be found at
3 # http://src.chromium.org/svn/trunk/tools/depot_tools/).
8 def read_file(filename
):
9 fh
= open(filename
, "r")
16 def read_deps_file(filename
):
19 return scope
["vars"][varname
]
21 exec read_file(filename
) in scope
26 scope
= read_deps_file("native_client/DEPS")
27 for path
, svn_url
in sorted(scope
["deps"].iteritems()):
28 if not svn_url
.startswith("http://nativeclient.googlecode.com/svn/trunk"):
29 args
= ["svn", "checkout", svn_url
, path
]
31 subprocess
.check_call(args
)
34 if __name__
== "__main__":