mirror of
https://github.com/curl/curl.git
synced 2026-07-27 20:03:07 +03:00
parent
bb9955c865
commit
2ac18d7ae4
1 changed files with 3 additions and 2 deletions
|
|
@ -90,16 +90,17 @@ my $tlist = "";
|
|||
foreach my $src (@src) {
|
||||
if($src =~ /([a-z0-9]+)\.c$/ && !exists $exclude{$src}) {
|
||||
my $name = $1;
|
||||
my $fn = $src;
|
||||
if($embed) {
|
||||
my $fn = $src;
|
||||
if($srcdir ne "" && -e "$srcdir/$fn") {
|
||||
$fn = $srcdir . "/" . $fn;
|
||||
}
|
||||
print "/* Embedding: \"$src\" */\n";
|
||||
my $content = do { local $/; open my $fh, '<', $fn or die $!; <$fh> };
|
||||
print $content;
|
||||
}
|
||||
else {
|
||||
print "#include \"$fn\"\n";
|
||||
print "#include \"$src\"\n";
|
||||
}
|
||||
if(not exists $include{$src}) { # register test entry function
|
||||
$tlist .= " {\"$name\", test_$name},\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue