|
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 @echo off |
|
17 cls |
|
18 echo THIS PROGRAM REGENERATES ALL OF THE SIS FILES USED TO TEST DEVELOPER CERTIFICATE EXTENSIONS |
|
19 echo IT IS CALLED FROM MAKETESTSIS.FIL... |
|
20 |
|
21 set PLATFORM=%1 |
|
22 set CFG=%2 |
|
23 |
|
24 rem Remove only SIS\%PLATFORM% and PKG |
|
25 rem Leave out CERT, REQS and KEYS 'cause they were created during manual generation of certificates |
|
26 rem INI folder already contains backuprestore.ini and distribution.policy files |
|
27 if exist sis\%PLATFORM% rmdir /S /Q sis\%PLATFORM% |
|
28 if exist pkg rmdir /S /Q pkg else mkdir pkg |
|
29 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
30 del \epoc32\winscw\c\tswi\tdevcerts\scripts\*.ini |
|
31 |
|
32 mkdir sis\%PLATFORM% |
|
33 mkdir pkg |
|
34 |
|
35 |
|
36 |
|
37 REM Create the extension files |
|
38 for %%i in (ext\*.txt) do perl -w ..\..\..\certman\tx509\data\extensions\certextbuilder.pl "%%i" "ext\%%~ni.cfg" |
|
39 |
|
40 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
41 call makeplatform.bat %PLATFORM% %CFG% |
|
42 |
|
43 REM BACKUP AND RESTORE TESTS MUST USE UIDS MATCHING backuprestore.ini |
|
44 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
45 copy backup.uid.txt uid.txt.tmp |
|
46 call makebackuprestore.bat %PLATFORM% %CFG% |
|
47 |
|
48 REM move all SIS files to EPOC |
|
49 perl -w copysis.pl --platform %PLATFORM% --sis-dir sis |
|
50 |
|
51 copy /y ini\backuprestore.ini \epoc32\winscw\c\tswi\tdevcerts\scripts\backuprestore.ini |
|
52 |
|
53 REM tidy up |
|
54 if exist pkg rmdir /S /Q pkg |
|
55 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
56 |
|
57 :exit |