Added a master list of the currently used resources

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2921 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2008-02-08 03:42:52 +00:00
parent f82c0251f5
commit d083b37d92
2 changed files with 1049 additions and 2 deletions
File diff suppressed because it is too large Load Diff
+24 -1
View File
@@ -135,6 +135,29 @@ def dump_html(vals):
</body> </body>
</html>""" </html>"""
def dump_csv(vals):
for x in vals:
print "%s,%s,%s,%s" % x
def dump_header(vals):
print """// This file was AUTO-GENERATED by scan_defines.py
#ifndef RESINDEX_H_"""
for x in vals:
print "extern const char *%s;" % x[0]
print "#endif // RESINDEX_H_"
def dump_c_file(vals):
print """// This file was AUTO-GENERATED by scan_defines.py"
"""
for x in vals:
print "const char *%s = \"%s\";" % (x[0], x[2])
if __name__ == '__main__': if __name__ == '__main__':
dump_html(collect_data()) vs = collect_data()
#dump_csv(vs)
# print "--------"
# dump_header(vs)
# print "--------"
dump_c_file(vs)