uvmac/extras/trans.txt

33 lines
804 B
Plaintext
Raw Normal View History

2019-07-23 02:50:34 +00:00
# Some source files are simple transformations of other source
# files. Here are some MPW scripts to help keep them in sync.
Set x "rd:t1.txt"
Catenate "{my_project_d}"data:src:VIAEMDEV.c > "{x}"
Open "{x}"
Set CaseSensitive 1
Find <20> "{x}"
Replace -c <20> /'VIA1'/ 'VIA2' "{x}"
Find <20> "{x}"
Replace -c <20> /'VIAEMDEV'/ 'VIA2EMDV' "{x}"
Find <20> "{x}"
Replace -c <20> /'0x04'([0-9A-FX][0-9A-FX])<29>1/ '0x05'<27>1 "{x}"
Unset SearchType
Compare "{my_project_d}"data:src:VIA2EMDV.c "{x}"
Catenate "{my_project_d}"data:src:VIA2EMDV.c > "{x}"
Open "{x}"
Set CaseSensitive 1
Find <20> "{x}"
Replace -c <20> /'VIA2EMDV'/ 'VIAEMDEV' "{x}"
Find <20> "{x}"
Replace -c <20> /'VIA2'/ 'VIA1' "{x}"
Find <20> "{x}"
Replace -c <20> /'0x05'([0-9A-FX][0-9A-FX])<29>1/ '0x04'<27>1 "{x}"
Unset SearchType
Compare "{my_project_d}"data:src:VIAEMDEV.c "{x}"