tools/fix_rombuild_log.pl
changeset 94 002e7d402b45
equal deleted inserted replaced
93:fc883949f25b 94:002e7d402b45
       
     1 # Copyright (c) 2010 Symbian Foundation Ltd.
       
     2 # All rights reserved.
       
     3 # This component and the accompanying materials are made available
       
     4 # under the terms of the License "Eclipse Public License v1.0"
       
     5 # which accompanies this distribution, and is available
       
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 #
       
     8 # Initial Contributors:
       
     9 # Symbian Foundation - initial contribution.
       
    10 #
       
    11 # Contributors:
       
    12 #
       
    13 # Description: 
       
    14 # This script fixes rombuild logfiles which elf4rom doesn't like
       
    15 
       
    16 use strict;
       
    17 
       
    18 my $line;
       
    19 my $skipping = 0;
       
    20 while ($line = <>)
       
    21 	{
       
    22 	if ($line =~ /^PageSize:/)
       
    23 		{
       
    24 		print $line;
       
    25 		$skipping = 1;
       
    26 		next;
       
    27 		}
       
    28 	if ($line =~ /^Variant /)
       
    29 		{
       
    30 		print $line;
       
    31 		$skipping = 0;
       
    32 		next;
       
    33 		}
       
    34 	
       
    35 	next if ($skipping);
       
    36 	print $line;
       
    37 	}