#!/bin/sh

# This Bourne or Korn Shell script runs xmupad, 
# the window based MuPAD frontend for the X window system.

# These are the directories in which you installed MuPAD
 
# MuPAD_ROOT_PATH is the root directory of the MuPAD-System 
# MuPAD_BIN       is the directory of the MuPAD programms
# MuPAD_LIB       is the root directory of the MuPAD-Library
# MuPAD_HELP      is the directory of the Help dependent stuff
# MuPAD_DYNMOD    is the directory of MuPAD moduls

SYSINFO=`$MuPAD_ROOT_PATH/share/bin/sysinfo`

MuPAD_BIN=$MuPAD_ROOT_PATH/$SYSINFO/bin
MuPAD_LIB=$MuPAD_ROOT_PATH/share/lib
MuPAD_HELP=$MuPAD_ROOT_PATH/share/doc/ascii
MuPAD_HHELP=$MuPAD_ROOT_PATH/share/doc/hytex
MuPAD_DYNMOD=$MuPAD_ROOT_PATH/$SYSINFO/modules
HYTEX_PATH=$MuPAD_ROOT_PATH/share/doc/hytex
export HYTEX_PATH

# This ensures that MuPAD and Xxmupad will find all of its modules.
 
$MuPAD_BIN/Xxmupad -r $MuPAD_BIN/mupad -m $MuPAD_LIB -l $MuPAD_LIB -d $MuPAD_DYNMOD -h $MuPAD_HELP -H $MuPAD_BIN/hypage -M $MuPAD_HHELP -f $MuPAD_BIN/vcam -L english $* &
