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): ...@@ -426,6 +426,12 @@ def run_uninstall(args):
] ]
execute_script(UNINSTALL_LRC) execute_script(UNINSTALL_LRC)
def run_clean():
execute_script(['git clean -xfdd',
'git submodule foreach git clean -xfdd'])
def run_run(args): def run_run(args):
if args.distribution == OSX_DISTRIBUTION_NAME: if args.distribution == OSX_DISTRIBUTION_NAME:
subprocess.Popen( subprocess.Popen(
...@@ -575,6 +581,10 @@ def parse_args(): ...@@ -575,6 +581,10 @@ def parse_args():
ga.add_argument( ga.add_argument(
'--install', action='store_true', '--install', action='store_true',
help='Build and install Ring') 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( ga.add_argument(
'--uninstall', action='store_true', '--uninstall', action='store_true',
help='Uninstall Ring') help='Uninstall Ring')
...@@ -649,6 +659,8 @@ def main(): ...@@ -649,6 +659,8 @@ def main():
elif parsed_args.init: elif parsed_args.init:
run_init() run_init()
elif parsed_args.clean:
run_clean()
elif parsed_args.install: elif parsed_args.install:
run_install(parsed_args) run_install(parsed_args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment