equal
deleted
inserted
replaced
|
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 setlocal EnableDelayedExpansion |
|
18 set openpar=( |
|
19 set closepar=) |
|
20 |
|
21 if exist *.sis* ( del *.sis* ) |
|
22 if exist tmp.pkg ( del tmp.pkg ) |
|
23 |
|
24 copy /Y taskswitcher.pkg tmp.pkg > NUL |
|
25 |
|
26 echo Creating sis for each component: |
|
27 for /R .. %%i IN (*_template.pkg) DO set tmpname=%%~ni && set modulename=!tmpname:~0,-10!&& call createpackage %%i release-armv5 cert.cer key.pem > NUL && set sisname=%%~dpi!modulename!_release-armv5.sis && if exist !sisname! ( echo [SUCCEEDED] !modulename! [SUCCEEDED] && move !sisname! . && FOR /F "eol=( tokens=4 delims=({}" %%j IN (%%i) DO FOR /F "tokens=1 delims=)" %%k IN ("%%j") DO echo @"!modulename!_release-armv5.sis",!openpar!%%k!closepar! >> tmp.pkg ) else ( echo [FAILED] !modulename! [FAILED] ) |
|
28 |
|
29 REM echo. |
|
30 |
|
31 echo Embedding all sis files into single sis |
|
32 makesis tmp.pkg taskswitcher.sis >NUL |
|
33 signsis taskswitcher.sis taskswitcher.sisx cert.cer key.pem >NUL |
|
34 |
|
35 echo Cleaning up |
|
36 del tmp.pkg |
|
37 del taskswitcher.sis |
|
38 del *_release-armv5.sis* |
|
39 pause |