Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-project
Commits
6b364a9f
Unverified
Commit
6b364a9f
authored
Mar 12, 2021
by
Maxim Cournoyer
Browse files
build.py: Add a clean action.
Change-Id: Iba8aac10fa36e4404b07beab9dfe9ed3d8c5c1a2
parent
2f250c14
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.py
View file @
6b364a9f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment