Ignore machine-check MSRs
[freebsd-src/fkvm-freebsd.git] / crypto / openssl / util / files.pl
blob41f033e3b9aa409dba89c65bc9481e6be5d0a8ae
1 #!/usr/local/bin/perl
3 # used to generate the file MINFO for use by util/mk1mf.pl
4 # It is basically a list of all variables from the passed makefile
7 $s="";
8 while (<>)
10 chop;
11 s/#.*//;
12 if (/^(\S+)\s*=\s*(.*)$/)
14 $o="";
15 ($s,$b)=($1,$2);
16 for (;;)
18 if ($b =~ /\\$/)
20 chop($b);
21 $o.=$b." ";
22 $b=<>;
23 chop($b);
25 else
27 $o.=$b." ";
28 last;
31 $o =~ s/^\s+//;
32 $o =~ s/\s+$//;
33 $o =~ s/\s+/ /g;
35 $o =~ s/\$[({]([^)}]+)[)}]/$sym{$1}/g;
36 $sym{$s}=$o;
40 $pwd=`pwd`; chop($pwd);
42 if ($sym{'TOP'} eq ".")
44 $n=0;
45 $dir=".";
47 else {
48 $n=split(/\//,$sym{'TOP'});
49 @_=split(/\//,$pwd);
50 $z=$#_-$n+1;
51 foreach $i ($z .. $#_) { $dir.=$_[$i]."/"; }
52 chop($dir);
55 print "RELATIVE_DIRECTORY=$dir\n";
57 foreach (sort keys %sym)
59 print "$_=$sym{$_}\n";
61 print "RELATIVE_DIRECTORY=\n";