diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-03 15:05:21 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2018-09-11 19:34:38 +0530 |
commit | e72e08ea9c7ed2f19ec7539984a3740db056fdba (patch) | |
tree | cb8640fc41f0a711fa4745e54ef50e95e67193d0 /python/mach_bootstrap.py | |
parent | 6b75aa47cb6c34c6e34051ecd126e0982fc669e7 (diff) | |
download | servo-e72e08ea9c7ed2f19ec7539984a3740db056fdba.tar.gz servo-e72e08ea9c7ed2f19ec7539984a3740db056fdba.zip |
Allow bootstrap to be run before anything else is installed
Diffstat (limited to 'python/mach_bootstrap.py')
-rw-r--r-- | python/mach_bootstrap.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index 2db4bf01c30..3435b39f06a 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -224,11 +224,29 @@ def _is_windows(): return sys.platform == 'win32' +class DummyContext(object): + pass + + +def bootstrap_command_only(topdir): + from servo.bootstrap import bootstrap + + context = DummyContext() + context.topdir = topdir + force = False + if len(sys.argv) == 3 and sys.argv[2] == "-f": + force = True + bootstrap(context, force) + return 0 + + def bootstrap(topdir): _ensure_case_insensitive_if_windows() topdir = os.path.abspath(topdir) + len(sys.argv) > 1 and sys.argv[1] == "bootstrap" + # We don't support paths with Unicode characters for now # https://github.com/servo/servo/issues/10002 try: |