diff --git a/Maintenance/test_handling/to_zipped_format b/Maintenance/test_handling/to_zipped_format index afdb4394bf6..7b78be611b0 100755 --- a/Maintenance/test_handling/to_zipped_format +++ b/Maintenance/test_handling/to_zipped_format @@ -34,9 +34,10 @@ sub reformat_results($) my $platform = $_; # system("dos2unix ${platform}.txt ${platform}.txt"); open (PLATFORM_RESULTS,"<${platform}.txt") or return; - while (/^\s*$/) { - $_= ; + my $line; + while ( ($line = ) && /^\s*$/) { } + $_ = $line; open (PLATFORM_INFO,">${platform}.info") or return; open (PLATFORM_NEW_RESULTS,">${platform}.new_results") or return; my ($CGAL_VERSION,$LEDA_VERSION,$TESTER,$TESTER_NAME,$TESTER_ADDRESS,$GMP,$MPFR,$ZLIB,$BLAS,$LAPACK,$OPENGL,$TAUCS,$BOOST,$QT) = ("-","-","-","-","-","-","-","-","-","-","-","-","-","-"); @@ -105,7 +106,19 @@ sub reformat_results($) if (/CUSTOM_LDFLAGS = '([^']*)'/) { $LDFLAGS="$1"; } - $_= ; + if(/^CGAL_TEST_PLATFORM /) { + # should be the last one of the header + last; + } + if(! /^[A-Z][A-Z]/ ) { + # the header is finished + print PLATFORM_NEW_RESULTS $_; + last; + } + if(! ($_= )) { + # should never happen!! + last; + } } while () { print PLATFORM_NEW_RESULTS $_;