|
1 @rem |
|
2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 @rem All rights reserved. |
|
4 @rem This component and the accompanying materials are made available |
|
5 @rem under the terms of the License "Eclipse Public License v1.0" |
|
6 @rem which accompanies this distribution, and is available |
|
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 @rem |
|
9 @rem Initial Contributors: |
|
10 @rem Nokia Corporation - initial contribution. |
|
11 @rem |
|
12 @rem Contributors: |
|
13 @rem |
|
14 @rem Description: |
|
15 @rem |
|
16 rem Create a backup of the original JavaHelper.rsc |
|
17 rem We can't backup to the C drive because this is backed up and restored separately in a conflicting manner. |
|
18 if not exist \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc.original copy \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc.original |
|
19 if not exist \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc.original copy \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc.original |
|
20 |
|
21 if not exist \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc copy \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc.original |
|
22 if not exist \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc copy \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc.original |
|
23 if not exist \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc copy \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc.original |
|
24 if not exist \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc copy \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc.original |
|
25 |
|
26 |
|
27 rem If a parameter is specified then use this as the name of the alternate resource file |
|
28 if x==%1x goto restoreoriginal |
|
29 rem OS v9 onwards |
|
30 copy \epoc32\winscw\c\itharnessmidp\resources\%1.rsc \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc |
|
31 copy \epoc32\winscw\c\itharnessmidp\resources\%1.rsc \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc |
|
32 |
|
33 rem Pre OS v9 |
|
34 copy \epoc32\wins\c\itharnessmidp\resources\%1.rsc \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc |
|
35 copy \epoc32\wins\c\itharnessmidp\resources\%1.rsc \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc |
|
36 copy \epoc32\winscw\c\itharnessmidp\resources\%1.rsc \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc |
|
37 copy \epoc32\winscw\c\itharnessmidp\resources\%1.rsc \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc |
|
38 goto exit |
|
39 |
|
40 rem No arguments so restore the original resource file |
|
41 :restoreoriginal |
|
42 rem OS v9 onwards |
|
43 copy \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc.original \epoc32\release\winscw\udeb\z\Resource\JavaHelper\JavaHelper.rsc |
|
44 copy \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc.original \epoc32\release\winscw\urel\z\Resource\JavaHelper\JavaHelper.rsc |
|
45 |
|
46 rem Pre OS v9 |
|
47 copy \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc.original \epoc32\release\wins\udeb\z\system\data\JavaHelper.rsc |
|
48 copy \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc.original \epoc32\release\wins\urel\z\system\data\JavaHelper.rsc |
|
49 copy \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc.original \epoc32\release\winscw\udeb\z\system\data\JavaHelper.rsc |
|
50 copy \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc.original \epoc32\release\winscw\urel\z\system\data\JavaHelper.rsc |
|
51 goto exit |
|
52 |
|
53 :exit |