3 # This is a hacked version of files.pl for systems that can't do a 'make files'.
4 # Do a perl util/mkminfo.pl >MINFO to build MINFO
5 # Written by Steve Henson 1999.
7 # List of directories to process
87 my $fipscanisteronly = 0;
90 next if ($fipscanisteronly && !(-d $_));
91 &files_dir ($_, "Makefile");
98 my ($dir, $makefile) = @_;
102 open (IN, "$dir/$makefile") || die "Can't open $dir/$makefile";
110 if (/^(\S+)\s*=\s*(.*)$/)
133 $o =~ s/\$[({]([^)}]+)[)}]/$top{$1} or $sym{$1}/ge;
134 $sym{$s}=($top{$s} or $o);
138 print "RELATIVE_DIRECTORY=$dir\n";
140 foreach (sort keys %sym)
142 print "$_=$sym{$_}\n";
144 if ($dir eq "." && defined($sym{"BUILDENV"}))
146 foreach (split(' ',$sym{"BUILDENV"}))
153 print "RELATIVE_DIRECTORY=\n";
156 if ($dir eq "." && $sym{CONFIGURE_ARGS} =~ /fipscanisteronly/)
158 $fipscanisteronly = 1;