mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2024-05-31 16:41:28 +00:00
Automate re-Rezzing in EasyBuild script
The DeRezzed files in Misc (*.rsrc and GoNativeResources) will be Rezzed from their own data forks when EasyBuild notices that they have an empty resource fork.
This commit is contained in:
parent
3cb1a8d163
commit
bbe9f79aaf
|
@ -4,5 +4,12 @@ Set MAKE_OUT :BuildResults:RISC:Text:MakeFile
|
||||||
Set Parent "`Files -f "{0}" | StreamEdit -d -e '/((Å:)*)¨1([Â:]*)/ Print ¨1'`"
|
Set Parent "`Files -f "{0}" | StreamEdit -d -e '/((Å:)*)¨1([Â:]*)/ Print ¨1'`"
|
||||||
SetDirectory "{Parent}"
|
SetDirectory "{Parent}"
|
||||||
|
|
||||||
|
Set AllMiscRsrcFiles "`WhereIs -s :Misc .rsrc` `WhereIs -s :Misc GoNativeResources`" # quoted for us!
|
||||||
|
|
||||||
|
For ToRez in `Files -n -x r {AllMiscRsrcFiles} | StreamEdit -d -e "/(Å)¨1 0b°/ Print ¨1"`
|
||||||
|
Echo EasyBuild: Rezzing (once-off) "{ToRez}"
|
||||||
|
Rez -t rsrc -c RSED -o "{ToRez}" "{ToRez}"
|
||||||
|
End
|
||||||
|
|
||||||
Make -w -d Sources=: -f "{MAKE_FILE}" RomMondo > "{MAKE_OUT}"
|
Make -w -d Sources=: -f "{MAKE_FILE}" RomMondo > "{MAKE_OUT}"
|
||||||
"{MAKE_OUT}"
|
"{MAKE_OUT}"
|
||||||
|
|
|
@ -25,13 +25,6 @@ Finally, do a once-off "re-smudge":
|
||||||
rm -rf ../mac-rom/*
|
rm -rf ../mac-rom/*
|
||||||
git checkout .
|
git checkout .
|
||||||
|
|
||||||
Restoring resource forks
|
|
||||||
------------------------
|
|
||||||
Some files in the `Misc` folder contain pre-built resources that have been DeRezzed to gel with version control. On your Mac with the command line developer tools installed:
|
|
||||||
|
|
||||||
cd Misc
|
|
||||||
for x in *.rsrc GoNativeResources; do Rez -o $x $x; done
|
|
||||||
|
|
||||||
Building
|
Building
|
||||||
--------
|
--------
|
||||||
This code is built with the [Macintosh Programmer's Workshop](https://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop) (MPW), which runs on the Classic Mac OS. To satisfy the memory requirements of the build process, the MPW Shell should get a memory partition of at least 16 MB. Once you have MPW set up, the build process is not particularly fussy.
|
This code is built with the [Macintosh Programmer's Workshop](https://en.wikipedia.org/wiki/Macintosh_Programmer%27s_Workshop) (MPW), which runs on the Classic Mac OS. To satisfy the memory requirements of the build process, the MPW Shell should get a memory partition of at least 16 MB. Once you have MPW set up, the build process is not particularly fussy.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user