From 76009d8b0501cacebe4af2d8a44b9d92abc3ba1d Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sat, 8 Feb 2014 19:44:52 +0100 Subject: [PATCH] Implement skip for interface build process --- .../processes/interface/2_build.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/code/nel/tools/build_gamedata/processes/interface/2_build.py b/code/nel/tools/build_gamedata/processes/interface/2_build.py index f4a0f7461..0e1a0061f 100644 --- a/code/nel/tools/build_gamedata/processes/interface/2_build.py +++ b/code/nel/tools/build_gamedata/processes/interface/2_build.py @@ -54,8 +54,13 @@ if BuildInterface == "": else: mkPath(log, ExportBuildDirectory + "/" + InterfaceBuildDirectory) for dir in os.listdir(ExportBuildDirectory + "/" + InterfaceExportDirectory): - if (os.path.isdir(ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir)) and dir != ".svn" and dir != "*.*": - subprocess.call([ BuildInterface, ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga", ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir ]) + dirPath = ExportBuildDirectory + "/" + InterfaceExportDirectory + "/" + dir + if (os.path.isdir(dirPath)) and dir != ".svn" and dir != "*.*": + texturePath = ExportBuildDirectory + "/" + InterfaceBuildDirectory + "/texture_" + dir + ".tga" + if needUpdateDirNoSubdirFile(log, dirPath, texturePath): + subprocess.call([ BuildInterface, texturePath, dirPath ]) + else: + printLog(log, "SKIP " + texturePath) printLog(log, "") # For each interface directory to compress in one DXTC @@ -64,7 +69,12 @@ if BuildInterface == "": toolLogFail(log, BuildInterfaceTool, ToolSuffix) else: mkPath(log, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory) - subprocess.call([ BuildInterface, ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga", ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory ]) + dirPath = ExportBuildDirectory + "/" + InterfaceDxtcExportDirectory + texturePath = ExportBuildDirectory + "/" + InterfaceDxtcBuildDirectory + "/texture_interfaces_dxtc.tga" + if needUpdateDirNoSubdirFile(log, dirPath, texturePath): + subprocess.call([ BuildInterface, texturePath, dirPath ]) + else: + printLog(log, "SKIP " + texturePath) printLog(log, "") log.close()