cms/group/Create-UT_CCMSEncapsulatedContentInfo-Sis.bat
changeset 0 164170e6151a
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 @echo off
       
     2 rem
       
     3 rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 rem All rights reserved.
       
     5 rem This component and the accompanying materials are made available
       
     6 rem under the terms of "Eclipse Public License v1.0"
       
     7 rem which accompanies this distribution, and is available
       
     8 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     9 rem
       
    10 rem Initial Contributors:
       
    11 rem Nokia Corporation - initial contribution.
       
    12 rem
       
    13 rem Contributors:
       
    14 rem
       
    15 rem Description:
       
    16 rem
       
    17 
       
    18 echo.
       
    19 echo ====================================
       
    20 echo.
       
    21 echo Digia EUnit - Test
       
    22 echo.
       
    23 echo This BAT copies Test DLL
       
    24 echo to local folder and makes SIS file
       
    25 echo.
       
    26 echo ====================================
       
    27 echo.
       
    28 
       
    29 :CHECK_EPOCROOT
       
    30 echo.
       
    31 echo - verify epoc root
       
    32 set EPOCROOT
       
    33 if errorlevel == 1 goto END_ERROR 
       
    34 
       
    35 :COPY_DLL
       
    36 echo.
       
    37 echo - copy test dll to current directory
       
    38 copy %EPOCROOT%epoc32\release\thumb\urel\UT_CCMSEncapsulatedContentInfo.dll .
       
    39 if errorlevel == 1 goto END_ERROR 
       
    40 
       
    41 :CREATE_DIR
       
    42 echo.
       
    43 echo - create Sis folder (created only if needed)
       
    44 mkdir ..\Sis
       
    45 
       
    46 :MAKESIS
       
    47 echo.
       
    48 echo - makesis UT_CCMSEncapsulatedContentInfo.pkg ..\sis\UT_CCMSEncapsulatedContentInfo.sis
       
    49 call makesis UT_CCMSEncapsulatedContentInfo.pkg ..\sis\UT_CCMSEncapsulatedContentInfo.sis
       
    50 if errorlevel == 1 goto END_ERROR
       
    51 
       
    52 :DELETE_DLL
       
    53 echo.
       
    54 echo - remove the copied dll from current folder
       
    55 del UT_CCMSEncapsulatedContentInfo.dll
       
    56 goto END
       
    57 
       
    58 :END_ERROR
       
    59 echo.
       
    60 echo Sis creation failed. 
       
    61 goto FINAL_END
       
    62 
       
    63 :END
       
    64 echo.
       
    65 echo Sis file created succesfully
       
    66 echo ============================
       
    67 
       
    68 :FINAL_END
       
    69 echo.
       
    70