home *** CD-ROM | disk | FTP | other *** search
- Perl -Sx "{0}" {"Parameters"}
- Exit 0
- #!perl
-
- print <<'END_HEADER';
- tell application "MacPerl"
- with timeout of 300 seconds
- activate
- -- Ask for the test folder.
- -- This folder must be writeable.
- set p to Do Script "require \"GUSI.ph\"; &MacPerl'Reply(&MacPerl'Choose(&GUSI'AF_FILE, 0, \"Where are the tests ?\", \"\", &GUSI'CHOOSE_DIR))"
- END_HEADER
-
- while ($script = shift) {
- next if $script =~ /mac/;
-
- print "\t\tDo Script \"print \\\"----- $script" . '.' x (20 - length($script)) . "\\\\n\\\"\"\n";
-
- if ($script =~ /cpp/) {
- print "\t\tDo Script (p & \"$script\") with preprocess\n";
- } else {
- print "\t\tDo Script (p & \"$script\")\n";
- }
- }
-
- print <<END_FOOTER;
- Save front Window in file (p & ":MacPerlTest.Out")
- delete text in front Window
- Do Script {(p & ":MacPerlTest"), "evaluate", (p & ":MacPerlTest.Out")}
- Save front Window in file (p & ":MacPerlTest.Result")
- end timeout
- end tell
- END_FOOTER
-