mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 415422: Fix gqi dep build (crash on startup). r=ted, a=damons
This commit is contained in:
parent
7ec0006e27
commit
5a280ba02a
@ -54,11 +54,9 @@ my $silent = $ENV{MAKEFLAGS} =~ /^\w*s|\s-s/;
|
||||
%alldeps={};
|
||||
# Parse dependency files
|
||||
while ($line = <>) {
|
||||
chomp $line;
|
||||
# Remove extra ^M caused by using dos-mode line-endings
|
||||
chop $line if (substr($line, -1, 1) eq "\r");
|
||||
$line =~ s/\r?\n$//; # Handle both unix and DOS line endings
|
||||
($obj,$rest) = split /\s*:\s+/, $line, 2;
|
||||
next if $obj eq '';
|
||||
next if $obj eq '' || $rest eq '';
|
||||
|
||||
if ($line =~ /\\$/) {
|
||||
chop $rest;
|
||||
@ -70,7 +68,7 @@ while ($line = <>) {
|
||||
print "add $obj $rest\n" if $debug;
|
||||
|
||||
while ($hasSlash and $line = <>) {
|
||||
chomp $line;
|
||||
$line =~ s/\r?\n$//; # Handle both unix and DOS line endings
|
||||
if ($line =~ /\\$/) {
|
||||
chop $line;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user