diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-26 12:43:02 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-07-26 12:43:02 +0000 |
commit | 3b5ca523bc72bce199abcb9d5ec13af5913a4d2d (patch) | |
tree | 7c65f45ab947422d1c0c9bfcf5471d1b92e240e1 /configpm | |
parent | eda383f202c9baaca6fdea3cf178e40686e8a3bb (diff) | |
download | perl-3b5ca523bc72bce199abcb9d5ec13af5913a4d2d.tar.gz |
integrate cfgperl contents into mainline
p4raw-id: //depot/perl@3774
Diffstat (limited to 'configpm')
-rwxr-xr-x | configpm | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -1,15 +1,7 @@ #!./miniperl -w -# File::Spec? my $config_pm = $ARGV[0] || 'lib/Config.pm'; -my $src = '.'; -# File::Dirname? File::Spec? -if ($0 =~ m!^(?:(.+)/)configpm$!) { - $src = $1; - unshift @INC, "$1/lib"; -} -# File::Spec? -my $glossary = $ARGV[1] || "$src/Porting/Glossary"; +my $glossary = $ARGV[1] || 'Porting/Glossary'; @ARGV = "./config.sh"; # list names to put first (and hence lookup fastest) @@ -93,11 +85,7 @@ print CONFIG "\n", print CONFIG "my \$summary = <<'!END!';\n"; -# File::Spec? -my $myconfigdotSH = - $src eq "." ? "myconfig.SH" : "$src/myconfig.SH"; - -open(MYCONFIG,"<$myconfigdotSH") || die "open $myconfigdotSH failed: $!"; +open(MYCONFIG,"<myconfig.SH") || die "open myconfig.SH failed: $!"; 1 while defined($_ = <MYCONFIG>) && !/^Summary of/; do { print CONFIG $_ } until !defined($_ = <MYCONFIG>) || /^\s*$/; close(MYCONFIG); |