|
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: |
|
15 rem |
|
16 |
|
17 @echo off |
|
18 cls |
|
19 echo. |
|
20 echo ======================================================================== |
|
21 echo CREATING THE UPGRADE SIS FILE FOR DLNA SERVICES |
|
22 echo ======================================================================== |
|
23 echo. |
|
24 echo Verifying that the required PKG files can be found... |
|
25 |
|
26 IF NOT EXIST .\pkg\dlnasrv_cenrep_keys.pkg goto sis_pkg_error |
|
27 IF NOT EXIST .\pkg\dlnasrv.pkg goto sis_pkg_error |
|
28 |
|
29 echo [OK] |
|
30 |
|
31 echo. |
|
32 echo Deleting the old SIS, SISX and PKG files (if any) from this directory... |
|
33 |
|
34 IF EXIST .\dlnasrv_cenrep_keys.pkg del .\dlnasrv_cenrep_keys.pkg /F /Q |
|
35 IF EXIST .\dlnasrv.pkg del .\dlnasrv.pkg /F /Q |
|
36 |
|
37 echo [OK] |
|
38 |
|
39 echo. |
|
40 echo Copying PKG files... |
|
41 |
|
42 xcopy .\pkg\dlnasrv_cenrep_keys.pkg . |
|
43 xcopy .\pkg\dlnasrv_udeb.pkg . |
|
44 |
|
45 echo [OK] |
|
46 |
|
47 echo. |
|
48 echo Generating cenrep SIS file... |
|
49 |
|
50 makesis dlnasrv_cenrep_keys.pkg |
|
51 |
|
52 echo. |
|
53 echo [OK] |
|
54 |
|
55 echo. |
|
56 echo Generating dlnasrv SIS file... |
|
57 |
|
58 makesis dlnasrv_udeb.pkg |
|
59 |
|
60 echo. |
|
61 echo [OK] |
|
62 |
|
63 echo. |
|
64 echo DONE. |
|
65 |
|
66 goto end |
|
67 |
|
68 |
|
69 REM ========================================================================== |
|
70 REM Error notes |
|
71 REM ========================================================================== |
|
72 |
|
73 :sis_pkg_error |
|
74 echo. |
|
75 echo ERROR: One or more required PKG files missing! |
|
76 goto echo_failed |
|
77 |
|
78 :echo_failed |
|
79 echo. |
|
80 echo FAILED. |
|
81 echo. |
|
82 |
|
83 :end |
|
84 |
|
85 REM Delete temporary files |
|
86 IF EXIST .\dlnasrv_cenrep_keys.pkg del .\dlnasrv_cenrep_keys.pkg /F /Q |
|
87 IF EXIST .\dlnasrv_udeb.pkg del .\dlnasrv_udeb.pkg /F /Q |
|
88 |
|
89 @echo on |