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
76 my $fipscanisteronly = 0;
79 next if ($fipscanisteronly && !(-d $_));
80 &files_dir ($_, "Makefile");
87 my ($dir, $makefile) = @_;
91 open (IN, "$dir/$makefile") || die "Can't open $dir/$makefile";
99 if (/^([^\s=]+)\s*=\s*(.*)$/)
122 $o =~ s/\$[({]([^)}]+)[)}]/$top{$1} or $sym{$1}/ge;
123 $sym{$s}=($top{$s} or $o);
127 print "RELATIVE_DIRECTORY=$dir\n";
129 foreach (sort keys %sym)
131 print "$_=$sym{$_}\n";
133 if ($dir eq "." && defined($sym{"BUILDENV"}))
135 foreach (split(' ',$sym{"BUILDENV"}))
142 print "RELATIVE_DIRECTORY=\n";
145 if ($dir eq "." && $sym{FIPSCANISTERONLY} eq "y")
147 $fipscanisteronly = 1;