common/tools/mergeepoc32.pl
author Simon Howkins <simonh@symbian.org>
Tue, 26 May 2009 12:42:51 +0100
changeset 108 d33d43677cdf
parent 81 5e724ff842b4
permissions -rw-r--r--
Added license header
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
81
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
     1
#!perl -w
108
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     2
# Copyright (c) 2009 Symbian Foundation Ltd
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     3
# This component and the accompanying materials are made available
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     5
# which accompanies this distribution, and is available
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     7
#
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     8
# Initial Contributors:
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
     9
# Symbian Foundation Ltd - initial contribution.
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    10
# 
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    11
# Contributors:
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    12
#
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    13
# Description:
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    14
# Merges binaries from RnD repositories into the epoc32 tree used for the build
d33d43677cdf Added license header
Simon Howkins <simonh@symbian.org>
parents: 81
diff changeset
    15
81
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    16
use strict;
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    17
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    18
# Assume that all rnd repositories are delivered onto the build machine in \rnd\category\name\epoc32\...
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    19
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    20
my @rndRepositories = glob "/rnd/*/*";
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    21
foreach (@rndRepositories)
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    22
{
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    23
	s{/}{\\}g;
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    24
	system("xcopy /Q/C/I/Y/E $_\\epoc32 \\epoc32 > nul:");
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    25
}
5e724ff842b4 Added RnD binaries support in PRE-BUILD stage.
ThomasE@UK-ThomasE.symbian.int
parents:
diff changeset
    26