| 1 | # minimod.PL writes the contents of miniperlmain.c into the module
|
|---|
| 2 | # ExtUtils::Miniperl for later perusal (when the perl source is
|
|---|
| 3 | # deleted)
|
|---|
| 4 | #
|
|---|
| 5 | # It also writes the subroutine writemain(), which takes as its
|
|---|
| 6 | # arguments module names that shall be statically linked into perl.
|
|---|
| 7 | #
|
|---|
| 8 | # Authors: Andreas Koenig <[email protected]>, Tim Bunce
|
|---|
| 9 | # <[email protected]>
|
|---|
| 10 | #
|
|---|
| 11 | # Version 1.0, Feb 2nd 1995 by Andreas Koenig
|
|---|
| 12 |
|
|---|
| 13 | print <<'END';
|
|---|
| 14 | # This File keeps the contents of miniperlmain.c.
|
|---|
| 15 | #
|
|---|
| 16 | # It was generated automatically by minimod.PL from the contents
|
|---|
| 17 | # of miniperlmain.c. Don't edit this file!
|
|---|
| 18 | #
|
|---|
| 19 | # ANY CHANGES MADE HERE WILL BE LOST!
|
|---|
| 20 | #
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | package ExtUtils::Miniperl;
|
|---|
| 24 | require Exporter;
|
|---|
| 25 | @ISA = qw(Exporter);
|
|---|
| 26 | @EXPORT = qw(&writemain);
|
|---|
| 27 |
|
|---|
| 28 | $head= <<'EOF!HEAD';
|
|---|
| 29 | END
|
|---|
| 30 |
|
|---|
| 31 | open MINI, "miniperlmain.c";
|
|---|
| 32 | while (<MINI>) {
|
|---|
| 33 | last if /Do not delete this line--writemain depends on it/;
|
|---|
| 34 | print;
|
|---|
| 35 | }
|
|---|
| 36 |
|
|---|
| 37 | print <<'END';
|
|---|
| 38 | EOF!HEAD
|
|---|
|
|---|