1 #!/usr/local/bin/perl -w
5 # WARNING: This is site-specific. Change to the location
6 # where you have installed dist-3.0PL70.
7 @std_units = glob('/pro/3gl/CPAN/lib/dist/U/*.U');
8 $PWD = '/pro/3gl/CPAN/perl';
9 # @std_units = glob('/opt/dist/lib/U/*.U');
10 # $PWD = '/export/home/doughera/src/perl/p4perl';
13 @perl_units = glob("$PWD/U/*/*.U");
14 push(@perl_units, @std_units);
16 # Get the list of config.sh symbols. Be sure this is up to date!
17 # (I run the U/mksample script first to be sure.)
18 open (WANTED, "< $PWD/Porting/config.sh") || die "$0: open $PWD/Wanted: $!\n";
19 my @WANTED = map { $_->[0] }
20 sort { $a->[1] cmp $b->[1] }
21 map { [ $_, lc $_ ] } <WANTED>;
25 !!!!!!! DO NOT EDIT THIS FILE !!!!!!!
26 This file is built by metaconfig.
28 This file contains a description of all the shell variables whose value is
29 determined by the Configure script. Variables intended for use in C
30 programs (e.g. I_UNISTD) are already described in config_h.SH. [`configpm'
31 generates pod documentation for Config.pm from this file--please try to keep
32 the formatting regular.]
36 foreach $file (@perl_units) {
37 open(FH, "<$file") || die "$0: open $file: $!";
38 my $base = basename($file);
39 $Loc = $file, next if $base eq 'Loc.U' and not defined $Loc;
41 if (/^\?S:\w+[ \t:]/ .. /^\?S:.$/) {
43 ($var) = ((shift @var) =~ /^(\w+)/);
44 unless (exists $expl{$var}) {
45 $expl{$var} = [ @var, "\n" ];
50 s/^\?S://; # Remove leading ?S: markers.
51 s/^\s+(?=.)/\t/; # Ensure all lines begin with tabs.
56 close(FH) || die "$0: close $file: $!";
59 die "$0: Couldn't locate Loc.U: $!" unless defined $Loc;
61 open(FH, "<$Loc") || die "$0: open $Loc: $!";
66 $file{$var} = 'Loc.U';
69 close(FH) || die "$0: close $Loc: $!";
71 symbol: foreach my $var (@WANTED) {
73 next symbol if $var =~ /^#/; # Skip comments
74 next symbol if $var =~ /^$/;
75 ($var, $val) = split(/=/, $var, 2);
78 if (exists $expl{$var}) {
79 if ($file{$var} eq 'Loc.U') {
80 print "$var (Loc.U):\n";
82 # If we didn't have d_portable, this info might be
83 # useful, but it still won't help with non-standard
84 # stuff if perl is built on one system but installed
85 # on others (this is common with Linux distributions,
88 This variable is defined but not used by Configure.
89 The value is a plain '' and is not useful.
94 This variable is used internally by Configure to determine the
95 full pathname (if any) of the $var program. After Configure runs,
96 the value is reset to a plain "$var" and is not useful.
101 print "$var ($file{$var}):\n";
102 print @{ $expl{$var} };
107 # Handle special variables from Oldsyms.U. Since these start
108 # with capital letters, metalint considers them to be "special
109 # unit" symbols. It's easier to define them here than to try
110 # to fool metalint any further. --AD 22 Oct 1999
111 elsif ($var eq 'PERL_REVISION') {
114 PERL_REVISION (Oldsyms.U):
115 In a Perl version number such as 5.6.2, this is the 5.
116 This value is manually set in patchlevel.h
120 elsif ($var eq 'PERL_VERSION') {
123 PERL_VERSION (Oldsyms.U):
124 In a Perl version number such as 5.6.2, this is the 6.
125 This value is manually set in patchlevel.h
129 elsif ($var eq 'PERL_SUBVERSION') {
132 PERL_SUBVERSION (Oldsyms.U):
133 In a Perl version number such as 5.6.2, this is the 2.
134 Values greater than 50 represent potentially unstable
135 development subversions.
136 This value is manually set in patchlevel.h
140 elsif ($var eq 'PERL_APIVERSION') {
143 PERL_APIVERSION (Oldsyms.U):
144 This value is manually set in patchlevel.h and is used
145 to set the Configure apiversion variable.
149 elsif ($var eq 'CONFIGDOTSH') {
152 CONFIGDOTSH (Oldsyms.U):
153 This is set to 'true' in config.sh so that a shell script
154 sourcing config.sh can tell if it has been sourced already.
159 warn "$0: couldn't find $var\n"
160 if not $gotit and $var !~ /^(Author|Date|Header|Id|Locker|Log|Mcc|RCSfile|Revision|Source|State)$|_cflags$|^config_arg/;