cyberslak
/lightsout
/amendments
/8
GenerateR: add
This is a little MPW script that generates the Rez file from a rsrc file. Can be run under ToolServer in CodeWarrior.
cyberslak made amendment 8 25 days ago
--- GenerateR Sat Mar 8 16:10:44 2025
+++ GenerateR Sat Mar 8 16:10:44 2025
@@ -0,0 +1,10 @@
+Set InFile "Macintosh HD:Documents:LightsOut:LightsOut.rsrc"
+Set OutFile "Macintosh HD:Documents:LightsOut:LightsOut.r"
+
+Delete "{OutFile}"
+Echo '// Generated by GenerateR' >> "{OutFile}"
+Echo '#include "Types.r"' >> "{OutFile}"
+Echo '#include "SysTypes.r"' >> "{OutFile}"
+Echo '' >> "{OutFile}"
+
+DeRez -i "{RIncludes}" "{InFile}" Types.r SysTypes.r >> "{OutFile}"