imgtools/imaker/src/imaker.cmd
changeset 1 be27ed110b50
child 584 56dd7656a965
equal deleted inserted replaced
0:044383f39525 1:be27ed110b50
       
     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 the License "Symbian Foundation License v1.0"
       
     7 rem which accompanies this distribution, and is available
       
     8 rem at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     9 rem
       
    10 rem Initial Contributors:
       
    11 rem Nokia Corporation - initial contribution.
       
    12 rem
       
    13 rem Contributors:
       
    14 rem
       
    15 rem Description: iMaker wrapper for Windows
       
    16 rem
       
    17 
       
    18 
       
    19 setlocal
       
    20 set MAKE=
       
    21 set IMAKER_CMDARG=%*
       
    22 if "%EPOCROOT%"==""         set EPOCROOT=\
       
    23 if "%CONFIGROOT%"==""       set CONFIGROOT=%EPOCROOT%epoc32\rom\config
       
    24 if "%ITOOL_DIR%"==""        set ITOOL_DIR=%EPOCROOT%epoc32\tools\rom
       
    25 if "%IMAKER_DIR%"==""       set IMAKER_DIR=%ITOOL_DIR%\imaker
       
    26 if "%IMAKER_MAKE%"==""      set IMAKER_MAKE=%IMAKER_DIR%\mingw_make.exe
       
    27 if "%IMAKER_MAKESHELL%"=="" set IMAKER_MAKESHELL=%COMSPEC%
       
    28 if "%IMAKER_MAKESHELL%"=="" set IMAKER_MAKESHELL=cmd.exe
       
    29 if "%IMAKER_CYGWIN%"==""    set IMAKER_CYGWIN=0
       
    30 if "%PERL%"==""             set PERL=perl
       
    31 call %PERL% -x %IMAKER_DIR%\imaker.pl
       
    32 set IMAKER_ERROR=%errorlevel%
       
    33 if %IMAKER_ERROR% geq 1 (
       
    34     call %PERL% -v >nul 2>&1
       
    35     if errorlevel 1 echo Perl is not properly installed! Environment variable PERL can be used to set the Perl exe.
       
    36 )
       
    37 if 0%IMAKER_EXITSHELL% equ 0 exit /b %IMAKER_ERROR%
       
    38 exit %IMAKER_ERROR%
       
    39 endlocal
       
    40 
       
    41 :: END OF IMAKER.CMD