1 | #!/bin/sh |
---|
2 | # ---------------------------------------------------------------------- |
---|
3 | # RAPPTURE ENVIRONMENT |
---|
4 | # |
---|
5 | # This is the main script that most people use to invoke the |
---|
6 | # Rappture GUI. It sets environment variables so that the Rappture |
---|
7 | # GUI driver will work properly for the current installation. |
---|
8 | # |
---|
9 | # ====================================================================== |
---|
10 | # AUTHOR: Michael McLennan, Purdue University |
---|
11 | # Copyright (c) 2004-2008 Purdue Research Foundation |
---|
12 | # |
---|
13 | # See the file "license.terms" for information on usage and |
---|
14 | # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
15 | # ====================================================================== |
---|
16 | # |
---|
17 | # If you install Rappture elsewhere, edit the line below: |
---|
18 | RAPPTURE_INSTALL_DIR=@prefix@ |
---|
19 | |
---|
20 | # no need to edit the rest... |
---|
21 | export PATH=$RAPPTURE_INSTALL_DIR/bin:$PATH |
---|
22 | |
---|
23 | export TCLLIBPATH="$RAPPTURE_INSTALL_DIR/lib/vtk $TCLLIBPATH" |
---|
24 | |
---|
25 | export LD_LIBRARY_PATH=$RAPPTURE_INSTALL_DIR/lib:$RAPPTURE_INSTALL_DIR/lib/vtk:$RAPPTURE_INSTALL_DIR:$LD_LIBRARY_PATH |
---|
26 | |
---|
27 | export DYLD_LIBRARY_PATH=$RAPPTURE_INSTALL_DIR/lib:$RAPPTURE_INSTALL_DIR/lib/vtk:$DYLD_LIBRARY_PATH |
---|
28 | |
---|
29 | MATLABPATH=$RAPPTURE_INSTALL_DIR/lib/matlab:$MATLABPATH |
---|
30 | OCTAVE_PATH=:$RAPPTURE_INSTALL_DIR/lib/octave:$OCTAVE_PATH |
---|
31 | PERL5LIB=$RAPPTURE_INSTALL_DIR/lib/perl:$PERL5LIB |
---|
32 | RUBYLIB=$RAPPTURE_INSTALL_DIR/lib/ruby:$RUBYLIB |
---|
33 | TCL_LIBRARY=$RAPPTURE_INSTALL_DIR/lib/tcl8.4:$TCL_LIBRARY |
---|
34 | TK_LIBRARY=$RAPPTURE_INSTALL_DIR/lib/tk8.4:$TK_LIBRARY |
---|
35 | |
---|
36 | export MATLABPATH OCTAVE_PATH PERL5LIB RUBYLIB TCL_LIBRARY TK_LIBRARY |
---|
37 | |
---|
38 | # This is done specifically for python right now. |
---|
39 | python="$RAPPTURE_INSTALL_DIR/bin/python.env" |
---|
40 | if test -x "$python" ; then |
---|
41 | . $python |
---|
42 | fi |
---|
43 | |
---|