author | William Roberts <williamr@symbian.org> |
Tue, 02 Nov 2010 22:34:36 +0000 | |
changeset 106 | 376d4db79ce0 |
parent 94 | 002e7d402b45 |
permissions | -rw-r--r-- |
94
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
1 |
# Copyright (c) 2010 Symbian Foundation Ltd. |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
2 |
# All rights reserved. |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
3 |
# This component and the accompanying materials are made available |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
4 |
# under the terms of the License "Eclipse Public License v1.0" |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
5 |
# which accompanies this distribution, and is available |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
7 |
# |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
8 |
# Initial Contributors: |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
9 |
# Symbian Foundation - initial contribution. |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
10 |
# |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
11 |
# Contributors: |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
12 |
# |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
13 |
# Description: |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
14 |
# This script fixes rombuild logfiles which elf4rom doesn't like |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
15 |
|
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
16 |
use strict; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
17 |
|
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
18 |
my $line; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
19 |
my $skipping = 0; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
20 |
while ($line = <>) |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
21 |
{ |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
22 |
if ($line =~ /^PageSize:/) |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
23 |
{ |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
24 |
print $line; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
25 |
$skipping = 1; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
26 |
next; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
27 |
} |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
28 |
if ($line =~ /^Variant /) |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
29 |
{ |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
30 |
print $line; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
31 |
$skipping = 0; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
32 |
next; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
33 |
} |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
34 |
|
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
35 |
next if ($skipping); |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
36 |
print $line; |
002e7d402b45
Utility to remove the problematic section of rombuild.log, so that elf4rom can work properly
William Roberts <williamr@symbian.org>
parents:
diff
changeset
|
37 |
} |