mirror of
https://github.com/elliotnunn/supermario.git
synced 2024-11-25 09:30:50 +00:00
Auto-DumpObj every file in BuildResults
Having an up-to-date object dump hands greatly speeds up the round-tripping slog.
This commit is contained in:
parent
4ed556851a
commit
8ed81abc85
20
bin/build
20
bin/build
@ -133,9 +133,23 @@ if 1: # has MPW
|
|||||||
|
|
||||||
# Tell MPW what to do when it starts (can use {Src} in their -c command)
|
# Tell MPW what to do when it starts (can use {Src} in their -c command)
|
||||||
if config.passthru:
|
if config.passthru:
|
||||||
bootscript = 'Set Src Disk:Src:; Export Src; Directory {Src}\r'
|
bootscript = '''
|
||||||
bootscript += 'Set Exit 0; %s; Quit\r' % config.passthru
|
Set Src Disk:Src:
|
||||||
vol['MPW']['UserStartup'].data = bootscript.encode('mac_roman')
|
Export Src
|
||||||
|
Directory {{Src}}
|
||||||
|
Set Exit 0
|
||||||
|
|
||||||
|
''' + {config.passthru} + '''
|
||||||
|
|
||||||
|
# DumpObj SeriousFile.c.o to SeriousFile.c.d
|
||||||
|
Files -r -o -f -t 'OBJ ' -c 'MPS ' Disk:Src:BuildResults | StreamEdit ∂
|
||||||
|
-e "1,$ change 'If ∂`Newer ' . ' ' . '.dump∂`; DumpObj ' . '>' . '.dump; End'; replace -c 2 /[a-z]+.dump/ 'd'" ∂
|
||||||
|
>Disk:DumpObjScript
|
||||||
|
Disk:DumpObjScript
|
||||||
|
|
||||||
|
Quit
|
||||||
|
'''
|
||||||
|
vol['MPW']['UserStartup'].data = bootscript.replace('\n', '\r').encode('mac_roman')
|
||||||
|
|
||||||
# Evil tuning: more RAM for MPW because some tools do not use temp mem
|
# Evil tuning: more RAM for MPW because some tools do not use temp mem
|
||||||
mpw = list(macresources.parse_file(vol['MPW']['MPW Shell'].rsrc))
|
mpw = list(macresources.parse_file(vol['MPW']['MPW Shell'].rsrc))
|
||||||
|
Loading…
Reference in New Issue
Block a user