From 0d2f35e43b1a26638668d49c385bb7f54ff003af 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()