|
1 @rem |
|
2 @rem Copyright (c) 2006-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 |
|
17 cls |
|
18 echo DO NOT RUN THIS PROGRAM - PRESS CTRL C to Cancel |
|
19 echo THIS PROGRAM REGENERATES ALL OF THE TEST DEVELOPER CERTIFICATE EXTENSIONS |
|
20 echo and SIS |
|
21 pause |
|
22 |
|
23 echo Removing old stuff... |
|
24 rmdir /S /Q sis certs reqs keys |
|
25 if exist pkg rmdir pkg |
|
26 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
27 del \epoc32\winscw\c\tswi\tdevcerts\scripts\*.ini |
|
28 |
|
29 echo Creating new folders... |
|
30 mkdir sis\winscw |
|
31 mkdir sis\armv5 |
|
32 mkdir certs |
|
33 mkdir reqs |
|
34 mkdir keys |
|
35 mkdir pkg |
|
36 |
|
37 |
|
38 |
|
39 REM Create the extension files |
|
40 for %%i in (ext\*.txt) do perl -w ..\..\..\certman\tx509\data\extensions\certextbuilder.pl "%%i" "ext\%%~ni.cfg" |
|
41 |
|
42 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
43 call makeplatformcerts.bat winscw udeb |
|
44 |
|
45 REM UIDs MUST MATCH INI FILES SO RESET COUNTER |
|
46 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
47 call makeplatformcerts.bat armv5 urel |
|
48 |
|
49 REM BACKUP AND RESTORE TESTS MUST USE UIDS MATCHING backuprestore.ini |
|
50 |
|
51 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
52 copy backup.uid.txt uid.txt.tmp |
|
53 call makebackuprestorecerts.bat winscw udeb |
|
54 |
|
55 del uid.txt.tmp /F /Q |
|
56 copy backup.uid.txt uid.txt.tmp |
|
57 call makebackuprestorecerts.bat armv5 urel |
|
58 |
|
59 REM move all SIS files to EPOC |
|
60 perl -w copysis.pl --platform winscw --sis-dir sis |
|
61 perl -w copysis.pl --platform armv5 --sis-dir sis |
|
62 |
|
63 copy /y ini\backuprestore.ini \epoc32\winscw\c\tswi\tdevcerts\scripts\backuprestore.ini |
|
64 |
|
65 REM tidy up |
|
66 if exist pkg rmdir /S /Q pkg |
|
67 if exist uid.txt.tmp del uid.txt.tmp /F /Q |
|
68 |
|
69 :exit |