aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/export.py
blob: dc1a66f829db6ff924c30e89063abf4f17236dfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/python

from __future__ import division
from __future__ import print_function

with open("../icebox/iceboxdb.py", "w") as f:
    for i in [ "database_io", "database_logic", "database_ramb", "database_ramt", "database_ramb_8k", "database_ramt_8k" ]:
        print('%s_txt = """' % i, file=f)
        with open("%s.txt" % i, "r") as fi:
            for line in fi:
                print(line, end="", file=f)
        print('"""', file=f)