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