+Fri Aug 28 16:30:00 1998 Miro Jurisic <meeroh@mit.edu>
+
+ * Makefile.tmpl, ReadMe, Makefile.initial, RunAppleScript.pl: Added stuff to
+ automagically run AppleScriprs to build CW projects.
+
Fri Aug 28 12:00:00 1998 Miro Jurisic <meeroh@mit.edu>
* Makefile.tmpl: Removed static library targets, renamed other
--- /dev/null
+all Ä build-makefile create-directories build-cw-projects
+ echo # Open {TargDir}:mac:libraries:BeforeBuild.prj in CodeWarrior IDE 2.1 and build it
+
+################################################################################
+##
+## Creating makefile
+##
+################################################################################
+
+build-makefile Ä
+ perl :mac:macfile_gen.pl
+
+################################################################################
+##
+## Creating build directories
+##
+################################################################################
+
+create-directories Ä
+ If Not "`Exists -d :bin`"
+ NewFolder :bin
+ End
+ If Not "`Exists -d :bin:PPC`"
+ NewFolder :bin:PPC
+ End
+ If Not "`Exists -d :bin:CFM-68K`"
+ NewFolder :bin:CFM-68K
+ End
+
+################################################################################
+##
+## Build CodeWarrior projects
+##
+################################################################################
+
+build-cw-projects Ä
+ (Echo "Tell application ¶"CodeWarrior IDE 2.1¶""; ¶
+ Echo "Open ¶"{TargDir}:mac:libraries:BeforeBuild.prj¶" as alias"; ¶
+ Echo "Make Project"; ¶
+ Echo "end") | Catenate | perl :mac:RunAppleScript.pl
\ No newline at end of file
/mac/ReadMe \
/mac/version.r \
/mac/FragmentAlias.mpw \
+ /mac/RunAppleScript.pl \
"/mac/Release notes" \
/mac/libraries/autoconf.h \
/mac/libraries/ChangeLog \
SetFile -a l {snapshot-root}"{snapshot-file}"
end
end
-
+ Duplicate {TargDir}mac/Makefile.initial {snapshot-root}Makefile
+
+################################################################################
+##
+## Makefile
+##
+################################################################################
+Makefile :Ê/mac/Makefile.tmpl
+ perl /mac/macfile_gen.pl
5) Set directory in MPW to the top level of Kerberos 5 distribution
(e.g. "GSS-Kerberos5-1.0.5").
- 6) Execute "perl :mac:macfile_gen.pl" in MPW.
-
- 7) Build target "create-directories" in MPW.
-
- 8) Open the project "[krb5 src]:mac:libraries:BeforeBuild.prj"
- in your CW Pro 2 IDE and build it.
-
- You will see some link warnings. These are normal and can be ignored.
+ 6) Build target "all" in MPW.
+ This will create a new Makefile, and launch your CodeWarrior IDE 2.1 to build
+ some CodeWarrior projects. You may be asked to locate CodeWarrior IDE 2.1.
--- Building libraries ---
- 9) Build target "all" in MPW. Wait.
+ 7) Build target "all" in MPW. Wait.
Example build times: 30-40 minutes on a G3 machine, 80 minutes
on a PowerMac 9600/233.
--- /dev/null
+use Mac::Components;
+use Mac::OSA;
+use Mac::AppleEvents;
+
+undef $/;
+
+$applescript = OpenDefaultComponent(kOSAComponentType, "ascr") or die "AppleScript not installed";
+$script = AECreateDesc "TEXT", <STDIN>;
+
+$result = OSADoScript($applescript, $script, 0, "TEXT", 0) or die $^E;
+
+print AEPrint($result), "\n";
+
+AEDisposeDesc $result;
+AEDisposeDesc $script;
+CloseComponent $applescript;