os/graphics/fbs/fontandbitmapserver/trasterizer/test/scripts/rasterizer_winscw_install.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 rem Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 rem All rights reserved.
     3 rem This component and the accompanying materials are made available
     4 rem under the terms of "Eclipse Public License v1.0"
     5 rem which accompanies this distribution, and is available
     6 rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 rem
     8 rem Initial Contributors:
     9 rem Nokia Corporation - initial contribution.
    10 rem
    11 rem Contributors:
    12 rem
    13 rem Description:
    14 
    15 
    16 @echo off
    17 setlocal
    18 
    19 call :init %1
    20 call :setup
    21 call :listfiles
    22 
    23 goto :skipFunctions
    24 
    25 :help
    26 	echo.
    27 	echo Test Extended Bitmap rasterizer installer for winscw
    28 	echo.
    29 	echo Usage: rasterizer_winscw_install.bat [install_flag]
    30 	echo Where:
    31 	echo install_flag:    install or uninstall
    32 	echo.
    33 goto :EOF
    34 
    35 :init
    36 	set INSTALL_FLAG=%1
    37 	set TEST_EB_RASTERIZER=fbsrasterizer_test.dll
    38 goto :EOF
    39 
    40 :setup
    41 	if "%INSTALL_FLAG%"=="install" call :rasterizer_install & goto :EOF
    42 	if "%INSTALL_FLAG%"=="uninstall" call :rasterizer_uninstall & goto :EOF
    43 	call :help
    44 goto :EOF
    45 
    46 :rasterizer_install
    47 	if not exist "%EPOC_INI%" echo ERROR: %EPOC_INI% does not exist & call :help & goto :EOF
    48 
    49 	if exist "%EPOC_INI%.rasterizer.bak" del %EPOC_INI% >NUL
    50 	if exist "%EPOC_INI%.rasterizer.bak" copy %EPOC_INI%.rasterizer.bak %EPOC_INI% >NUL
    51 	if not exist "%EPOC_INI%.rasterizer.bak" copy %EPOC_INI% %EPOC_INI%.rasterizer.bak >NUL
    52 	echo INFO: Modifying %EPOC_INI% for test Extended Bitmap rasterizer
    53 	echo. >> %EPOC_INI%
    54 	echo FBSRASTERIZER_DLL %TEST_EB_RASTERIZER% >> %EPOC_INI%
    55 goto :EOF
    56 
    57 :rasterizer_uninstall
    58 	if exist "%EPOC_INI%.rasterizer.bak" del %EPOC_INI% >NUL
    59 	echo INFO: Restoring %EPOC_INI%.rasterizer.bak to %EPOC_INI%
    60 	if exist "%EPOC_INI%.rasterizer.bak" copy %EPOC_INI%.rasterizer.bak %EPOC_INI% >NUL
    61 	if exist "%EPOC_INI%.rasterizer.bak" del %EPOC_INI%.rasterizer.bak >NUL
    62 goto :EOF
    63 
    64 :listfiles
    65 
    66 echo =======================================
    67 echo files after %0 %1
    68 echo =======================================
    69 echo epoc.ini:	%EPOC_INI%
    70 echo =======================================
    71 type %EPOC_INI%
    72 echo =======================================
    73 
    74 goto :EOF
    75 
    76 :skipFunctions
    77 
    78 endlocal