summaryrefslogtreecommitdiff
path: root/Porting/bisect.pl
diff options
context:
space:
mode:
authorMatthew Horsfall <wolfsage@gmail.com>2015-06-08 11:21:08 -0400
committerMatthew Horsfall <wolfsage@gmail.com>2015-06-08 12:59:22 -0400
commit3e0de0e5d9eb8d3519c1e3956d742daf071f7e21 (patch)
tree76e2a4b8257b6db92a3f0a8dc5c1538a4f672cc3 /Porting/bisect.pl
parenteffe640e5d4723ca15c089ab4d60e81bf349aa37 (diff)
downloadperl-3e0de0e5d9eb8d3519c1e3956d742daf071f7e21.tar.gz
bisect.pl: CPAN already writes out CPAN::MyConfig, no need to do it again.
Diffstat (limited to 'Porting/bisect.pl')
-rwxr-xr-xPorting/bisect.pl21
1 files changed, 0 insertions, 21 deletions
diff --git a/Porting/bisect.pl b/Porting/bisect.pl
index 6e78247afa..a93ba656aa 100755
--- a/Porting/bisect.pl
+++ b/Porting/bisect.pl
@@ -78,27 +78,6 @@ shell for you. Feel free to use defaults or change things as needed.
Type 'quit' when finished.
EOF
system("$^X -MCPAN -e shell");
-
- # mkpath for older File::Spec support (5.8.8, etc)
- eval { mkpath($cdir); };
- die "Failed to mkdir $cdir: $@\n" if $@;
-
- open (my $fh, '>', $cfile)
- || die "Could not open $cfile for writing: $!\n";
-
- my $data = `$^X -mCPAN -MData::Dumper -e 'CPAN::Config->load;
- print Dumper(\$CPAN::Config)' 2>/dev/null`;
-
- # Replace $VAR1 = { with $CPAN::Config = {
- unless ($data =~ s/^.*\$VAR1\s+=\s+{/\$CPAN::Config = {/s) {
- die "CPAN::Config does not look right, can't continue.\n",
- "Try creating a CPAN::MyConfig manually.\n",
- "The unrecognized output was: $data";
- }
-
- print $fh $data;
- print $fh "\n1;\n";
- close $data;
}
}