X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/3d3a0a8a5e7ee9abf3f3e52e1b63942b8c55a069..6d5e40b52d6bb41f8128318091fa21a48f5fecbb:/configpm diff --git a/configpm b/configpm index ebbc340..8c4bd14 100755 --- a/configpm +++ b/configpm @@ -150,7 +150,7 @@ $config_txt .= sprintf << 'EOT', $], $export_funcs; # for a description of the variables, please have a look at the # Glossary file, as written in the Porting folder, or use the url: -# http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary +# https://github.com/Perl/perl5/blob/blead/Porting/Glossary package Config; use strict; @@ -332,7 +332,7 @@ die if $@; # Calculation for the keys for byteorder # This is somewhat grim, but I need to run fetch_string here. -our $Config_SH_expanded = join "\n", '', @v_others; +$Config_SH_expanded = join "\n", '', @v_others; my $t = fetch_string ({}, 'ivtype'); my $s = fetch_string ({}, 'ivsize'); @@ -574,9 +574,11 @@ local *_ = \my $a; $_ = <<'!END!'; EOT #proper lexicographical order of the keys +my %seen_var; $heavy_txt .= join('', map { $_->[-1] } sort {$a->[0] cmp $b->[0] } + grep { !$seen_var{ $_->[0] }++ } map { /^([^=]+)/ ? [ $1, $_ ] : [ $_, $_ ] # shouldnt happen @@ -858,6 +860,8 @@ open(CONFIG_POD, '>', $Config_POD) or die "Can't open $Config_POD: $!"; print CONFIG_POD <<'ENDOFTAIL'; =head1 NAME +=for comment Generated by configpm. Any changes made here will be lost! + Config - access Perl configuration information =head1 SYNOPSIS @@ -892,7 +896,7 @@ named variable exists. For a description of the variables, please have a look at the Glossary file, as written in the Porting folder, or use the url: -http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/Glossary +https://github.com/Perl/perl5/blob/blead/Porting/Glossary =over 4 @@ -1021,16 +1025,12 @@ sub process { print CONFIG_POD <