- Timestamp:
- 06/30/2017 02:56:44 PM (7 years ago)
- Branches:
- master
- Children:
- 6ec258e
- Parents:
- cbc2fcf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
hatari/rem.py
rcbc2fcf rf40d52b 259 259 send_alnum(c) 260 260 261 time.sleep(0. 1)261 time.sleep(0.075) 262 262 263 263 def run_command(command): … … 270 270 print("Waiting for completion") 271 271 while not os.path.exists(sig_path): 272 time.sleep(0. 5)272 time.sleep(0.25) 273 273 274 274 os.unlink(sig_path) … … 295 295 send_line("") 296 296 297 def archive_one(arch, base): 298 print("Adding {}.o to {}".format(base, arch)) 299 run_command("cp d:\\out\\{}.o {}.o".format(base, base)) 300 run_command("ar68 r {} {}.o".format(arch, base)) 301 run_command("rm {}.o".format(base)) 302 send_line("") 303 304 def archive(arch, mod): 305 print("Creating {}".format(arch)) 306 307 for path in mod: 308 (dir, file) = path.split("/") 309 (base, ext) = file.split(".") 310 archive_one(arch, base) 311 312 run_command("cp {} d:\\out\\{}".format(arch, arch)) 313 run_command("rm {}".format(arch)) 314 send_line("") 315 297 316 print("Waiting for Hatari to connect to {}.".format(lis_path)) 298 317 hatari_connect() … … 323 342 else: 324 343 raise Exception("file {} with invalid extension {}".format(file, ext)) 344 345 archive("prolog.a", mod_prolog) 346 archive("iolib.a", mod_iolib) 347 archive("libcio.a", mod_libcio) 348 archive("libsm.a", mod_libsm) 349 archive("lib700.a", mod_lib700) 350 archive("vlib.a", mod_vlib)
Note:
See TracChangeset
for help on using the changeset viewer.