#!/bin/sh
#
#  Mathematica 3.0.2 command file
#
#  Copyright 1988 - 1997  Wolfram Research, Inc.  
#
topdir=/usr/local/mathematica
sysid=Solaris
bindir=$topdir/SystemFiles/Kernel/Binaries/$sysid

PATH=$PATH:$topdir/SystemFiles/Graphics/Binaries/$sysid
export PATH

XFILESEARCHPATH=$topdir/SystemFiles/Graphics/TextResources/English/%N
export XFILESEARCHPATH

if [ ."$PSRESOURCEPATH" = . ]; then
   PSRESOURCEPATH=$topdir/SystemFiles/Graphics/SystemResources:$topdir/SystemFiles/Fonts/Type1
else
   PSRESOURCEPATH=$PSRESOURCEPATH:$topdir/SystemFiles/Graphics/SystemResources:$topdir/SystemFiles/Fonts/Type1
fi
export PSRESOURCEPATH

if [ ! -f $bindir/MathKernel ]; then
   echo "Mathematica kernel executable"
   echo "$bindir/MathKernel"
   echo "not found.  Your Mathematica installation may be incomplete"
   echo "or corrupted."
   exit
fi
exec $bindir/MathKernel "$@" -runfirst "\$TopDirectory=\"$topdir\"" -pwpath $topdir/Configuration/Licensing
