pkiutilities/ocsp/test/scripts/setupOcspPolicy.bat
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     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 REM 
       
    19 
       
    20 REM Copies the OCSP repository specified in %1 to the correct place
       
    21 REM Called with the the repository file as the only argument
       
    22 
       
    23 set NAME=%1
       
    24 set FILE=\epoc32\winscw\c\system\tocsp\scripts\%1
       
    25 
       
    26 echo Installing OCSP repository from %FILE%
       
    27 
       
    28 
       
    29 IF %NAME% == 2002b28b-new.txt GOTO NEWREPOSITORY
       
    30 
       
    31 IF %NAME% == 2002b28b.txt GOTO OLDREPOSITORY
       
    32 
       
    33 :NEWREPOSITORY
       
    34 copy \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b.txt \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b-old.txt
       
    35 copy %FILE% \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b.txt
       
    36 GOTO END
       
    37 
       
    38 
       
    39 
       
    40 :OLDREPOSITORY
       
    41 copy \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b-old.txt \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b.txt
       
    42 del \epoc32\release\winscw\udeb\z\private\10202be9\2002b28b-old.txt
       
    43 
       
    44 
       
    45 
       
    46 :END
       
    47 
       
    48 
       
    49