|
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 "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: This BAT copies Test DLL to local folder and makes SIS file |
|
15 rem |
|
16 |
|
17 @echo off |
|
18 echo. |
|
19 echo ==================================== |
|
20 echo. |
|
21 echo Digia EUnit - Test |
|
22 echo. |
|
23 echo This BAT copies Test DLL |
|
24 echo to local folder and makes SIS file |
|
25 echo. |
|
26 echo ==================================== |
|
27 echo. |
|
28 |
|
29 :CHECK_EPOCROOT |
|
30 echo. |
|
31 echo - verify epoc root |
|
32 set EPOCROOT |
|
33 if errorlevel == 1 goto END_ERROR |
|
34 |
|
35 :COPY_DLL |
|
36 echo. |
|
37 echo - copy test dll to current directory |
|
38 copy %EPOCROOT%epoc32\release\thumb\urel\UT_CSelectItemHandler.dll . |
|
39 if errorlevel == 1 goto END_ERROR |
|
40 |
|
41 :CREATE_DIR |
|
42 echo. |
|
43 echo - create Sis folder (created only if needed) |
|
44 mkdir ..\Sis |
|
45 |
|
46 :MAKESIS |
|
47 echo. |
|
48 echo - makesis UT_CSelectItemHandler.pkg ..\sis\UT_CSelectItemHandler.sis |
|
49 call makesis UT_CSelectItemHandler.pkg ..\sis\UT_CSelectItemHandler.sis |
|
50 if errorlevel == 1 goto END_ERROR |
|
51 |
|
52 :DELETE_DLL |
|
53 echo. |
|
54 echo - remove the copied dll from current folder |
|
55 del UT_CSelectItemHandler.dll |
|
56 goto END |
|
57 |
|
58 :END_ERROR |
|
59 echo. |
|
60 echo Sis creation failed. |
|
61 goto FINAL_END |
|
62 |
|
63 :END |
|
64 echo. |
|
65 echo Sis file created succesfully |
|
66 echo ============================ |
|
67 |
|
68 :FINAL_END |
|
69 echo. |
|
70 |