[DEV] change basic build clean extention module name -clean to ?clean
This commit is contained in:
parent
8a654def1b
commit
6d0894a134
2
lutin.py
2
lutin.py
@ -49,7 +49,7 @@ localArgument = myLutinArg.parse()
|
||||
def usage():
|
||||
# generic argument displayed :
|
||||
myLutinArg.display()
|
||||
print(" All target can finish with '-clean' '-dump' ...")
|
||||
print(" All target can finish with '?clean' '?dump' ... ?action")
|
||||
print(" all")
|
||||
print(" build all (only for the current selected board) (bynary and packages)")
|
||||
print(" clean")
|
||||
|
@ -257,14 +257,14 @@ class Target:
|
||||
def get_doc_folder(self, moduleName):
|
||||
return lutinTools.get_run_folder() + self.folder_out + self.folder_doc + "/" + moduleName
|
||||
|
||||
def is_module_build(self,module):
|
||||
def is_module_build(self, module):
|
||||
for mod in self.buildDone:
|
||||
if mod == module:
|
||||
return True
|
||||
self.buildDone.append(module)
|
||||
return False
|
||||
|
||||
def is_module_buildTree(self,module):
|
||||
def is_module_buildTree(self, module):
|
||||
for mod in self.buildTreeDone:
|
||||
if mod == module:
|
||||
return True
|
||||
@ -369,7 +369,7 @@ class Target:
|
||||
mod.clean(self)
|
||||
else:
|
||||
# get the action an the module ....
|
||||
gettedElement = name.split("-")
|
||||
gettedElement = name.split("?")
|
||||
moduleName = gettedElement[0]
|
||||
if len(gettedElement)>=2:
|
||||
actionName = gettedElement[1]
|
||||
@ -377,7 +377,7 @@ class Target:
|
||||
actionName = "build"
|
||||
debug.verbose("requested : " + moduleName + "-" + actionName)
|
||||
if actionName == "install":
|
||||
self.build(moduleName + "-build")
|
||||
self.build(moduleName + "?build")
|
||||
self.install_package(moduleName)
|
||||
elif actionName == "uninstall":
|
||||
self.un_install_package(moduleName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user