🐛 #8919 - add new command that cleans only out & dist dirs
This commit is contained in:
parent
3b265747fe
commit
713e256843
2 changed files with 19 additions and 0 deletions
18
script/clean-build.py
Executable file
18
script/clean-build.py
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from lib.util import rm_rf
|
||||
|
||||
|
||||
SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
|
||||
def main():
|
||||
os.chdir(SOURCE_ROOT)
|
||||
rm_rf('dist')
|
||||
rm_rf('out')
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main())
|
Loading…
Add table
Add a link
Reference in a new issue