diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2022-07-28 18:34:29 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2022-07-28 18:34:29 +0200 |
commit | 3bf7794edf280562631b6a446024b815cc4b9630 (patch) | |
tree | a5528ee883596f3a1ea08da3f2d49ea9bd3d94e6 /bin | |
parent | 72f2320ca52ee90d8d243aad9e8670883482eb09 (diff) | |
download | justbuild-3bf7794edf280562631b6a446024b815cc4b9630.tar.gz |
Add setup-env option to just-mr
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/just-mr.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py index 2e088279..73b9b455 100755 --- a/bin/just-mr.py +++ b/bin/just-mr.py @@ -762,7 +762,7 @@ def main(): if not args: fail("Usage: %s <cmd> [<args>]" % (sys.argv[0], )) - if args[0] == "setup": + if args[0] == "setup-env": # Setup for interactive use, i.e., fetch the required repositories # and generate an appropriate multi-repository configuration file. # Store it in the CAS and print its path on stdout. @@ -774,6 +774,11 @@ def main(): # correctly. print(setup(config=config, args=args[1:], interactive=True)) return + if args[0] == "setup": + # Setup such that the main repository keeps its workspace given in + # the input config. + print(setup(config=config, args=args[1:])) + return if args[0] == "build": build(config=config, args=args[1:]) if args[0] == "install": |