mirror of
https://github.com/InvisibleUp/uvmac.git
synced 2024-11-24 19:33:29 +00:00
33 lines
824 B
Plaintext
33 lines
824 B
Plaintext
# 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 "{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 "{project_d}"data:src:VIA2EMDV.c "{x}"
|
||
|
||
|
||
Catenate "{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 "{project_d}"data:src:VIAEMDEV.c "{x}"
|