#!/bin/sh
# Shell script to launch Taurus Java VM
# (C) Copyright 2003, Taurus Software

###
# Change PLATFORM to suit your target platform

#PLATFORM=cygwin32
PLATFORM=linux-i386

###
# Don't change anything below this line

PROG=$0

###
# If TJVM_HOME is unset, figure it out from path to this script

if [ "x$TJVM_HOME" = "x" ]
then
    TJVM_BIN=`dirname $PROG`
    TJVM_HOME=$TJVM_BIN/..
    export TJVM_HOME
fi

###
# Make sure binary exists, if not report TJVM_HOME

if [ ! -x $TJVM_HOME/$PLATFORM/javavm ]
then
    echo "Can't find javavm binary in \"$TJVM_HOME/$PLATFORM\""
    echo "Try setting TJVM_HOME, or fixing PLATFORM in this script."
    exit 1
fi

###
# Launch the appropriate javavm binary

$TJVM_HOME/$PLATFORM/javavm $*
