|
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 @echo off |
|
17 |
|
18 REM ################################################################################ |
|
19 REM Xuikon/HSPS install script. Installs Xuikon themes (Creates ODT files) |
|
20 REM and copies them under the HSPS projects with the same name. |
|
21 REM |
|
22 REM The script will do the following: |
|
23 REM 1. Go through the directory names under the install\ directory |
|
24 REM 2. Find .dat files under each directory and call themeinstaller.bat on |
|
25 REM each of them. |
|
26 REM 3. Copy the ODT-files from a temporary location to the widget directory\hsps\ |
|
27 REM |
|
28 REM The directory structure should look like this: |
|
29 REM install\ |
|
30 REM my_widget\ |
|
31 REM hsps\ <<-- The HSPS Configuration files should be located here |
|
32 REM xuikon\ <<-- The Xuikon theme should be located here |
|
33 REM ################################################################################ |
|
34 |
|
35 REM If "install" directory is not found, display an error |
|
36 if not exist install\ ( |
|
37 goto error |
|
38 ) |
|
39 |
|
40 REM create a directory for temporary files |
|
41 if not exist install_temp ( |
|
42 mkdir install_temp |
|
43 ) |
|
44 |
|
45 REM go to install directory and list all directory names (that should contain the widgets) |
|
46 dir /AD /B install > install_temp\install_temp.txt |
|
47 |
|
48 REM go through the temporary file and call install on all xuikon themes |
|
49 FOR /F "tokens=1 delims=" %%i in (install_temp\install_temp.txt) do call installxuikontheme.cmd %%i |
|
50 |
|
51 REM delete files in temporary location and delete the temporary epoc32 dir |
|
52 rmdir /S /Q install_temp\ |
|
53 |
|
54 goto end |
|
55 |
|
56 :error |
|
57 echo "install" directory not found. |
|
58 |
|
59 :end |
|
60 REM call rename_localized_xuikon_odts.pl |
|
61 echo Done. |