@echo off
setlocal
rem ----------------------------------------------------------------------------- 
rem  Project :  
rem  Modul   :  
rem ----------------------------------------------------------------------------- 
rem  Copyright 2004 Texas Instruments Deutschland GmbH 
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=..\tools\bin;..\..\tools\bin\debug;..\..\tools\bin;%PATH%

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

@if x%GPF% == x goto start
cd "%GPF%\BIN"
@if x%1 == x goto start
rem special default version requested ?
set cfg_dir=..\cfg
if NOT EXIST ..\cfg\xpan.ini.default set cfg_dir=..\..\cfg
copy %cfg_dir%\xpan.ini.%1 %cfg_dir%\xpan.ini
:start
start /min xpanel
goto end

:usage
@echo usage: 
@echo "xpan [-h| {tst_com1|tst_com2|sim|ti_mux|at_com1|at_com2} ]"


:end
endlocal
@if x%GPF% == x exit
