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