#!/bin/sh
# Wrapper script to start up Jacl

# Do not edit this script unless it is called jaclsh.in.
# configure takes jaclsh.in, substitutes the @xx@
# fields and creates jaclsh.

# Author:  Moses DeJong
# Version: $Id: jaclsh.in,v 1.6 1998/11/07 02:17:16 hylands Exp $
#
# Copyright (c) 1998 by Moses DeJong
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.


# The next two lines gets substituted by configure
prefix=@prefix@
XPLATFORM_LIB_INSTALL_DIR=@exec_prefix@/lib

# Add the .jar files to the CLASSPATH
JACL_CLASSPATH=${XPLATFORM_LIB_INSTALL_DIR}/tcljava.jar:${XPLATFORM_LIB_INSTALL_DIR}/jacl.jar:@JAVA_CLASSPATH@

JAVA=@JAVA_DIR@/bin/java

# Start Java runtime with 5 Meg Min Heap and 20 Meg Max Heap
JAVA_FLAGS="@JAVA_FLAGS@ -ms5m -mx20m"

# Run java with the args passed in from the calling environment

exec ${JAVA} ${JAVA_FLAGS} -classpath ${JACL_CLASSPATH} tcl.lang.Shell ${1+"$@"}
