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"
|
|
|
|
|
|
|
|
|
|
|
2020-02-11 05:34:32 +00:00
|
|
|
|
Catenate "{project_d}"data:src:VIAEMDEV.c > "{x}"
|
2019-07-23 02:50:34 +00:00
|
|
|
|
Open "{x}"
|
|
|
|
|
Set CaseSensitive 1
|
2020-02-11 05:34:32 +00:00
|
|
|
|
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}"
|
2019-07-23 02:50:34 +00:00
|
|
|
|
Unset SearchType
|
|
|
|
|
|
2020-02-11 05:34:32 +00:00
|
|
|
|
Compare "{project_d}"data:src:VIA2EMDV.c "{x}"
|
2019-07-23 02:50:34 +00:00
|
|
|
|
|
|
|
|
|
|
2020-02-11 05:34:32 +00:00
|
|
|
|
Catenate "{project_d}"data:src:VIA2EMDV.c > "{x}"
|
2019-07-23 02:50:34 +00:00
|
|
|
|
Open "{x}"
|
|
|
|
|
Set CaseSensitive 1
|
2020-02-11 05:34:32 +00:00
|
|
|
|
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}"
|
2019-07-23 02:50:34 +00:00
|
|
|
|
Unset SearchType
|
|
|
|
|
|
2020-02-11 05:34:32 +00:00
|
|
|
|
Compare "{project_d}"data:src:VIAEMDEV.c "{x}"
|