mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Don't go into dotted directories when copying Makefile.in to Makefile
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
769adcfe8b
commit
fb36ca1290
33
Configure
33
Configure
@ -1297,23 +1297,30 @@ foreach my $alg ( 'bn' ) {
|
||||
# Copy all Makefile.in to Makefile (except top-level)
|
||||
use File::Find;
|
||||
use IO::File;
|
||||
find(sub {
|
||||
return if ($_ ne "Makefile.in" || $File::Find::dir eq ".");
|
||||
my $in = IO::File->new($_, "r") or
|
||||
die sprintf "Error reading Makefile.in in %s: !$\n",
|
||||
find(
|
||||
{
|
||||
preprocess => sub {
|
||||
grep(!/^\./, @_);
|
||||
},
|
||||
wanted => sub {
|
||||
return if ($_ ne "Makefile.in" || $File::Find::dir eq ".");
|
||||
my $in = IO::File->new($_, "r") or
|
||||
die sprintf "Error reading Makefile.in in %s: !$\n",
|
||||
$File::Find::dir;
|
||||
my $out = IO::File->new("Makefile", "w") or
|
||||
die sprintf "Error writing Makefile in %s: !$\n",
|
||||
my $out = IO::File->new("Makefile", "w") or
|
||||
die sprintf "Error writing Makefile in %s: !$\n",
|
||||
$File::Find::dir;
|
||||
print $out "# Generated from $_, do not edit\n";
|
||||
while (my $line = <$in>) { print $out $line }
|
||||
$in->close() or
|
||||
die sprintf "Error reading Makefile.in in %s: !$\n",
|
||||
print $out "# Generated from $_, do not edit\n";
|
||||
while (my $line = <$in>) { print $out $line }
|
||||
$in->close() or
|
||||
die sprintf "Error reading Makefile.in in %s: !$\n",
|
||||
$File::Find::dir;
|
||||
$out->close() or
|
||||
die sprintf "Error writing Makefile in %s: !$\n",
|
||||
$out->close() or
|
||||
die sprintf "Error writing Makefile in %s: !$\n",
|
||||
$File::Find::dir;
|
||||
}, ".");
|
||||
},
|
||||
},
|
||||
".");
|
||||
|
||||
my %builders = (
|
||||
unixmake => sub {
|
||||
|
Loading…
Reference in New Issue
Block a user