Skip to content
Snippets Groups Projects
Unverified Commit 6b364a9f authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

build.py: Add a clean action.

Change-Id: Iba8aac10fa36e4404b07beab9dfe9ed3d8c5c1a2
parent 2f250c14
No related branches found
No related tags found
No related merge requests found
......@@ -426,6 +426,12 @@ def run_uninstall(args):
]
execute_script(UNINSTALL_LRC)
def run_clean():
execute_script(['git clean -xfdd',
'git submodule foreach git clean -xfdd'])
def run_run(args):
if args.distribution == OSX_DISTRIBUTION_NAME:
subprocess.Popen(
......@@ -575,6 +581,10 @@ def parse_args():
ga.add_argument(
'--install', action='store_true',
help='Build and install Ring')
ga.add_argument(
'--clean', action='store_true',
help='Call "git clean" on every repository of the project'
)
ga.add_argument(
'--uninstall', action='store_true',
help='Uninstall Ring')
......@@ -649,6 +659,8 @@ def main():
elif parsed_args.init:
run_init()
elif parsed_args.clean:
run_clean()
elif parsed_args.install:
run_install(parsed_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment