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
77 my $fipscanisteronly = 0;
80 next if ($fipscanisteronly && !(-d $_));
81 &files_dir ($_, "Makefile");
88 my ($dir, $makefile) = @_;
92 open (IN, "$dir/$makefile") || die "Can't open $dir/$makefile";
100 if (/^([^\s=]+)\s*=\s*(.*)$/)
123 $o =~ s/\$[({]([^)}]+)[)}]/$top{$1} or $sym{$1}/ge;
124 $sym{$s}=($top{$s} or $o);
128 print "RELATIVE_DIRECTORY=$dir\n";
130 foreach (sort keys %sym)
132 print "$_=$sym{$_}\n";
134 if ($dir eq "." && defined($sym{"BUILDENV"}))
136 foreach (split(' ',$sym{"BUILDENV"}))
143 print "RELATIVE_DIRECTORY=\n";
146 if ($dir eq "." && $sym{FIPSCANISTERONLY} eq "y")
148 $fipscanisteronly = 1;