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:
File diff suppressed because it is too large
Load Diff
@@ -135,6 +135,29 @@ def dump_html(vals):
|
||||
</body>
|
||||
</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__':
|
||||
dump_html(collect_data())
|
||||
vs = collect_data()
|
||||
#dump_csv(vs)
|
||||
# print "--------"
|
||||
# dump_header(vs)
|
||||
# print "--------"
|
||||
dump_c_file(vs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user