open (MINIMAIN, "<../miniperlmain.c") || die "failed to open miniperlmain.c" . $!; while () { if (/Do not delete this line--writemain depends on it/) { last; } else { print $_; } }; close(MINIMAIN); print "char *staticlinkmodules[]={\n"; foreach (@ARGV) { print "\t\"".$_."\",\n"; } print "\tNULL,\n"; print "\t};\n"; print "\n"; foreach (@ARGV) { print "EXTERN_C void boot_$_ _((CV* cv));\n" } print <