strip \r only on non-win32 platforms (wine on Linux).

This commit is contained in:
Gunter Knauf 2009-05-21 14:14:57 +00:00
parent b8b6521659
commit 5e2b5edde5
1 changed files with 2 additions and 1 deletions

View File

@ -664,7 +664,8 @@ if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) {
my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|";
open(F, $cmd);
while(<F>) {
s/\r//;
# strip CR from output on non-win32 platforms (wine on Linux)
s/\r// if ($^O ne 'MSWin32');
print;
}
close(F);