#!/bin/csh -f

if (! $?ICEM_ACN || $?ICEM_ACN == "") then
  echo "cannot run ScripApp without ICEM_ACN set!"
  exit 1
endif

if (! $?ICEM_SCRIB || $?ICEM_SCRIB == "") then
  setenv ICEM_SCRIB $ICEM_ACN/lib/scrib
endif

setenv TCL_LIBRARY $ICEM_ACN/lib/tcl8.3.3
setenv TK_LIBRARY  $ICEM_ACN/lib/tk8.3.3
#
# base runtime (tclsh or wish) on -batch or not
#
if ($#argv > 0 && "-batch" == "$1" ) then
    $ICEM_ACN/bin/tclsh $ICEM_SCRIB/app/main.tcl app_ic_regression -config_file_first -regression $* 
else
    $ICEM_ACN/bin/wish8.3.3 $ICEM_SCRIB/app/main.tcl app_ic_regression -config_file_first -regression $*
endif
