@echo off
setlocal
rem ----------------------------------------------------------------------------- 
rem  Project :  EMW
rem  Modul   :  
rem ----------------------------------------------------------------------------- 
rem  Copyright 2003 Texas Instruments Berlin, AG 
rem                 All rights reserved. 
rem 
rem                 This file is confidential and a trade secret of Texas 
rem                 Instruments Berlin, AG 
rem                 The receipt of or possession of this file does not convey 
rem                 any rights to reproduce or disclose its contents or to 
rem                 manufacture, use, or sell anything it may describe, in 
rem                 whole, or in part, without the specific written consent of 
rem                 Texas Instruments Berlin, AG. 
rem ----------------------------------------------------------------------------- 
rem |  Purpose :  
rem ----------------------------------------------------------------------------- 

set PATH=%PATH%;..\tools\bin;..\..\tools\bin\debug;..\..\tools\bin

@if x%1 == x-h goto usage

@if x%GPF% == x goto start
if EXIST emw.exe goto start
cd %GPF%\BIN
:start
rem  copy default configs
rem set cfg_dir=..\cfg
rem if NOT EXIST ..\cfg\tap.svc.default set cfg_dir=..\..\cfg
rem if NOT EXIST %cfg_dir%\tap.svc copy %cfg_dir%\tap.svc.default %cfg_dir%\tap.svc
start emw.exe %1 %2 %3
goto end

:usage
@echo usage: 
@echo "emw [-h]"

:end
endlocal
