diff options
author | Larry Wall <lwall@netlabs.com> | 1994-05-04 23:00:00 +0000 |
---|---|---|
committer | Larry Wall <lwall@netlabs.com> | 1994-05-04 23:00:00 +0000 |
commit | 85e6fe838fb25b257a1b363debf8691c0992ef71 (patch) | |
tree | fd5340cd6c3bbabfc21d3b0cac48e7ab3a481ebf /configpm | |
parent | 2304df62caa7d9be70e8b8bcdb454e139c9c103d (diff) | |
download | perl-85e6fe838fb25b257a1b363debf8691c0992ef71.tar.gz |
perl 5.0 alpha 9perl-5a9
[editor's note: the sparc executables have not been included,
and emacs backup files have been removed]
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -2,13 +2,6 @@ @ARGV = "./config.sh"; -undef $/; -$_ = <>; -s:^#!/bin/sh\n::; -s/'undef'/undef/g; -s/\n(\w+)=/;\n\$Config{'$1'} = /g; -s/;\n\$Config/\n\$Config/; - open STDOUT, ">lib/Config.pm" or die "Can't open lib/Config.pm: $!\n"; $myver = sprintf("%.3f", $]); @@ -23,5 +16,13 @@ require Exporter; ENDOFBEG -print $_; - +while (<>) { + s:^#!/bin/sh::; + s/'undef'/undef/; # So we can say "if $Config{'foo'}". + s/=true$/='true'/; # Catch CONFIG=true line from Configure. + s/^(\w+)=/\$Config{'$1'} = /; + s/$/;/ unless (/^#/ || /^$/); + print $_; +} +print "1;\n"; +exit 0; |