#!/bin/sh
#----------------------------------#
# run main tcl programm            #
# with the correct evaluation of   #
# the option given through SaX.tcl #
#----------------------------------#

#-------#
# paths #
#-------#
SAX=/var/X11R6/sax/bin/mainsax.tcl

if [ "$1" = "--stop" ];then
 shift
 $SAX $*
 exit 0
fi

for i in $*
do
  OPT=$OPT" "$i
done

#---------------------------#
# restart with new options  #
# break condition is --stop #
#---------------------------#
$0 --stop $OPT
 
