#!/bin/sh

#
# A simple Bourne-shell script to run RLaB from any installed location.
# To get RlaB working you only need to modify the first
# shell variable.
#

#
# Modify the following to identify where the RLaB "root" 
# directory is...
#

RROOT="/usr/local/rlab-1.26"	# Where the rlab directory is.

#
# Do _not_ modify the next three definitions...
# (unless you are sure of what you are doing).
#

RD="$RROOT/lib/rlab"		# The parent rlab library directory.
RLABEXE="$RROOT/bin/rlab"	# The rlab executable.

PATH="$PATH:$RROOT/local/bin:$RROOT/local/plplot/bin"

#
# You may want to modify RLAB_SEARCH_PATH...
# I suggest doing this after you have run RLaB
# and are a little familar with it.
#

RLAB_SEARCH_PATH=".:$RD/toolbox:$RD/examples"

RLAB_LIB_DIR="$RD/rlib"
RLAB_HELP_DIR="$RD/help"
RLAB_PAGER="more"

#
# The following is important. If you move the plplot
# directory, then you must fix the following.
#

PLPLOT_HOME="$RROOT/../plplot"

export PATH RLAB_SEARCH_PATH RLAB_LIB_DIR RLAB_HELP_DIR 
export PLPLOT_HOME RLAB_PAGER

#
# Finally, run RLaB...
#

$RLABEXE $*
