Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
authorWilliam Roberts <williamr@symbian.org>
Fri, 29 Oct 2010 20:03:11 +0100
changeset 94 002e7d402b45
parent 93 fc883949f25b
child 95 aad950cacc2b
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
tools/fix_rombuild_log.pl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/fix_rombuild_log.pl	Fri Oct 29 20:03:11 2010 +0100
@@ -0,0 +1,37 @@
+# Copyright (c) 2010 Symbian Foundation Ltd.
+# All rights reserved.
+# This component and the accompanying materials are made available
+# under the terms of the License "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Symbian Foundation - initial contribution.
+#
+# Contributors:
+#
+# Description: 
+# This script fixes rombuild logfiles which elf4rom doesn't like
+
+use strict;
+
+my $line;
+my $skipping = 0;
+while ($line = <>)
+	{
+	if ($line =~ /^PageSize:/)
+		{
+		print $line;
+		$skipping = 1;
+		next;
+		}
+	if ($line =~ /^Variant /)
+		{
+		print $line;
+		$skipping = 0;
+		next;
+		}
+	
+	next if ($skipping);
+	print $line;
+	}