Make mkfiles.pl work with fipscanisteronly.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 22 Feb 2011 17:02:14 +0000 (17:02 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 22 Feb 2011 17:02:14 +0000 (17:02 +0000)
util/mkfiles.pl

index 2d77a82b0c8194eab9d29a3efdc5376e8b7c2661..66b78f417dd72d5355fc16de33e541893b96da34 100755 (executable)
@@ -84,7 +84,10 @@ my @dirs = (
 
 %top;
 
 
 %top;
 
+my $fipscanisteronly = 0;
+
 foreach (@dirs) {
 foreach (@dirs) {
+       next if ($fipscanisteronly && !(-d $_));
        &files_dir ($_, "Makefile");
 }
 
        &files_dir ($_, "Makefile");
 }
 
@@ -150,4 +153,8 @@ if ($dir eq "." && defined($sym{"BUILDENV"}))
 print "RELATIVE_DIRECTORY=\n";
 
 close (IN);
 print "RELATIVE_DIRECTORY=\n";
 
 close (IN);
+if ($dir eq "." && $sym{CONFIGURE_ARGS} =~ /fipscanisteronly/)
+       {
+       $fipscanisteronly = 1;
+       }
 }
 }