Updates tools/travis-scripts/generate-template-files.py.

This commit is contained in:
James Chen 2014-03-12 20:18:55 +08:00
parent 67e3a25582
commit c4752b260b
1 changed files with 13 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class CocosFileList:
self.fileList_com=[] self.fileList_com=[]
self.fileList_lua=[] self.fileList_lua=[]
self.luaPath ="cocos/scripting/lua-bindings" self.luaPath = ["cocos/scripting/lua-bindings", "external/lua"]
def readIngoreFile(self, fileName): def readIngoreFile(self, fileName):
""" """
@ -88,7 +88,12 @@ class CocosFileList:
self.__bInclude(item) or self.__bInclude(item) or
self.__bInclude("%s/" %item) self.__bInclude("%s/" %item)
): ):
if relativePath.upper().find(self.luaPath.upper())==0: foundLuaModule = False
for luaPath in self.luaPath:
if relativePath.upper().find(luaPath.upper()) == 0:
foundLuaModule = True
break
if foundLuaModule:
self.fileList_lua.append("%s/" %relativePath) self.fileList_lua.append("%s/" %relativePath)
else: else:
self.fileList_com.append("%s/" %relativePath) self.fileList_com.append("%s/" %relativePath)
@ -112,7 +117,12 @@ class CocosFileList:
): ):
continue continue
# print(relativePath) # print(relativePath)
if relativePath.upper().find(self.luaPath.upper())==0: foundLuaModule = False
for luaPath in self.luaPath:
if relativePath.upper().find(luaPath.upper()) == 0:
foundLuaModule = True
break
if foundLuaModule:
self.fileList_lua.append(relativePath) self.fileList_lua.append(relativePath)
else: else:
self.fileList_com.append(relativePath) self.fileList_com.append(relativePath)