Update contrib.
2 # Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
4 # This component and the accompanying materials are made available
5 # under the terms of "Eclipse Public License v1.0"
6 # which accompanies this distribution, and is available
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 # Initial Contributors:
10 # Nokia Corporation - initial contribution.
15 # Script to automate copying of DirectGDI reference images to location where comparison tests can be run.
22 my $srcloc = $ARGV[0] ;#or die "No argument given";
25 print "Please specify the source directory which contains graphics component.\n";
28 my $imagedir = "\\directgdi\\test\\images\\reference";
29 # Check argument given exists
30 if (! -d $srcloc.$imagedir)
32 print "$srcloc is not a valid source code location for the graphics component.\n";
36 # Must be run from \epoc32\winscw\c\ or \epoc32\data\c
37 if(getcwd() !~ /c\/img/i)
39 print "This tool should be run from \\epoc32\\winscw\\c\\img\\ or \\epoc32\\data\\c\\img\\\n";
43 my $copycmd = "unzip -qo $srcloc$imagedir\\reference.zip -d .\\ref";
46 my $copycmd2 = "unzip -qo $srcloc$imagedir\\replacements_from_directgdi\\replacement.zip -d .\\ref";