Changes in tools/mkarray.py [f36ac04:94c05b89] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/mkarray.py
rf36ac04 r94c05b89 70 70 section = sys.argv[4] 71 71 72 timestamp = (1980, 1, 1, 0, 0, 0)73 74 72 header_ctx = [] 75 73 desc_ctx = [] … … 97 95 src_data = deflate(src_data) 98 96 src_fname = os.path.basename("%s.deflate" % src) 99 zipinfo = zipfile.ZipInfo(src_fname, timestamp) 100 archive.writestr(zipinfo, src_data) 97 archive.writestr(src_fname, src_data) 101 98 else: 102 99 src_fname = src … … 158 155 data += "\n\n" 159 156 data += "#endif\n" 160 zipinfo = zipfile.ZipInfo("%s.h" % dest, timestamp) 161 archive.writestr(zipinfo, data) 157 archive.writestr("%s.h" % dest, data) 162 158 163 159 data = '' … … 170 166 data += "\n".join(data_ctx) 171 167 data += "\n" 172 zipinfo = zipfile.ZipInfo("%s.s" % dest, timestamp) 173 archive.writestr(zipinfo, data) 168 archive.writestr("%s.s" % dest, data) 174 169 175 170 data = '' … … 185 180 data += "\n".join(size_ctx) 186 181 data += "\n" 187 zipinfo = zipfile.ZipInfo("%s_desc.c" % dest, timestamp) 188 archive.writestr(zipinfo, data) 182 archive.writestr("%s_desc.c" % dest, data) 189 183 190 184 archive.close()
Note:
See TracChangeset
for help on using the changeset viewer.