#!/bin/sh
# RCS: @(#) $Id: trans.in,v 1.6 2003/11/13 16:14:11 barras Exp $

TRANSPATH=`dirname $0`/../lib
TCLLIBPATH=$TRANSPATH; export TCLLIBPATH

# Choose batch (foreground) or interactive (background) mode
bg=1
for i do
 if [ $i = "-export" -o $i = "-convertto" -o $i = "-help" -o $i = "-h" -o $i = "-version" -o $i = "-v" ]; then
   bg=0
 fi
done
if [ $bg = 1 ] ; then
  exec @TK_EXEC_PREFIX@/bin/wish@SUFFIX@ $TRANSPATH/@TRANS_DIR@/tcl/Main.tcl -- ${1:+"$@"} &
else
  exec @TCL_EXEC_PREFIX@/bin/tclsh@SUFFIX@ $TRANSPATH/@TRANS_DIR@/tcl/Main.tcl -- ${1:+"$@"}
fi
