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 | exec_prefix=@prefix@ |
---|
19 | |
---|
20 | libdir=@libdir@ |
---|
21 | bindir=@bindir@ |
---|
22 | |
---|
23 | # no need to edit the rest... |
---|
24 | export PATH=${bindir}:$PATH |
---|
25 | |
---|
26 | export TCLLIBPATH="${libdir}/vtk $TCLLIBPATH" |
---|
27 | |
---|
28 | vtk_library_path=${libdir}/vtk-5.2:${libdir}/vtk |
---|
29 | |
---|
30 | export LD_LIBRARY_PATH=${libdir}:$vtk_library_path:$LD_LIBRARY_PATH |
---|
31 | |
---|
32 | export DYLD_LIBRARY_PATH=${libdir}:${libdir}/vtk:$DYLD_LIBRARY_PATH |
---|
33 | |
---|
34 | MATLABPATH=${libdir}/matlab:$MATLABPATH |
---|
35 | OCTAVE_PATH=:${libdir}/octave:$OCTAVE_PATH |
---|
36 | OCTAVE_LOADPATH=:${libdir}/octave:$OCTAVE_LOADPATH |
---|
37 | PERL5LIB=${libdir}/perl:$PERL5LIB |
---|
38 | RUBYLIB=${libdir}/ruby:$RUBYLIB |
---|
39 | TCL_LIBRARY=${libdir}/tcl8.4:$TCL_LIBRARY |
---|
40 | TK_LIBRARY=${libdir}/tk8.4:$TK_LIBRARY |
---|
41 | |
---|
42 | export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH |
---|
43 | export PERL5LIB RUBYLIB TCL_LIBRARY TK_LIBRARY PYTHONPATH |
---|
44 | |
---|
45 | # This is done specifically for python right now. |
---|
46 | python_version="@PYTHON_VERSION@" |
---|
47 | PYTHONPATH=${libdir}/python${python_version}/site-packages:${PYTHONPATH} |
---|
48 | |
---|