@echo off
rem  CTC++ System, part of ctcwrap -hard ... toolchain
rem  absagentinis2pm startup batch file for absagentinis2pm.pl Perl script
rem
rem  RCSfile     : $RCSfile: absagentinis2pm.bat $
rem  Version     : $Revision: 1.1 $, $Date: 2011/05/18 08:07:43 $
rem  Last Edited : 18.05.2011
rem  Author      : $Author: jorma $
rem
rem  Copyright (c) 2011 Testwell Oy
rem

rem Some, but not all, sanity checks...
if "%CTCHOME%" == "" goto NoCTCHOME
if not exist %CTCHOME%\perl\perl.exe goto NoPERL

"%CTCHOME%\perl\perl" "%CTCHOME%\absagentinis2pm.pl" %CTCHOME%\ctc-*.ini

goto end

:NoCTCHOME
echo.
echo Environment variable CTCHOME does not exist. Set the CTCHOME
echo to point to the CTC++ installation directory.
echo.
goto end

:NoPERL
echo.
echo CTC++ installation directory %CTCHOME%
echo does not contain perl subdirectory or it does not contain perl.exe.
echo.
goto end

:end
