[DEV] change basic build clean extention module name -clean to ?clean

This commit is contained in:
Edouard DUPIN 2015-05-04 21:39:15 +02:00
parent 8a654def1b
commit 6d0894a134
3 changed files with 6 additions and 6 deletions

View File

@ -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")

View File

@ -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)

View File

@ -18,7 +18,7 @@ class System(lutinSystem.System):
# create some HELP: # create some HELP:
self.help="Z : z library \n Can be install with the package:\n - zlib1g-dev" self.help="Z : z library \n Can be install with the package:\n - zlib1g-dev"
# check if the library exist: # check if the library exist:
if not os.path.isfile("/usr/include/zlib.h"): if not os.path.isfile("/usr/include/zlib.h"):
# we did not find the library reqiested (just return) (automaticly set at false) # we did not find the library reqiested (just return) (automaticly set at false)
return; return;
self.valid = True self.valid = True