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-2012 HUBzero Foundation, LLC |
---|
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=@INSTALL_PREFIX@ |
---|
19 | |
---|
20 | libdir=@libdir@ |
---|
21 | bindir=@bindir@ |
---|
22 | python_version=@PYTHON_VERSION@ |
---|
23 | tcl_version=@TCL_VERSION@ |
---|
24 | octave_version=@OCTAVE_VERSION_MAJOR@ |
---|
25 | |
---|
26 | # No need to edit anything else |
---|
27 | PATH=${bindir}:$PATH |
---|
28 | |
---|
29 | LD_LIBRARY_PATH=${libdir}:$LD_LIBRARY_PATH |
---|
30 | |
---|
31 | # For MacOS X |
---|
32 | DYLD_LIBRARY_PATH=${libdir}:$DYLD_LIBRARY_PATH |
---|
33 | |
---|
34 | export PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH |
---|
35 | |
---|
36 | MATLABPATH=${libdir}/matlab:$MATLABPATH |
---|
37 | OCTAVE_LOADPATH=:${libdir}/octave3:$OCTAVE_LOADPATH |
---|
38 | OCTAVE_PATH=:${libdir}/octave${octave_version}:$OCTAVE_PATH |
---|
39 | |
---|
40 | export MATLABPATH OCTAVE_PATH OCTAVE_LOADPATH |
---|
41 | |
---|
42 | PERL5LIB=${libdir}/perl:$PERL5LIB |
---|
43 | PYTHONPATH=${libdir}/python${python_version}/site-packages:${PYTHONPATH} |
---|
44 | RUBYLIB=${libdir}/ruby:$RUBYLIB |
---|
45 | |
---|
46 | export PERL5LIB RUBYLIB PYTHONPATH |
---|
47 | |
---|
48 | TCLLIBPATH="${libdir}/tcltk/vtk $TCLLIBPATH" |
---|
49 | TCL_LIBRARY=${libdir}/tcl${tcl_version}:$TCL_LIBRARY |
---|
50 | TK_LIBRARY=${libdir}/tk${tcl_version}:$TK_LIBRARY |
---|
51 | |
---|
52 | export TCL_LIBRARY TK_LIBRARY TCLLIBPATH |
---|
53 | |
---|
54 | CLASSPATH=.:${libdir}/java:$CLASSPATH |
---|
55 | |
---|
56 | export CLASSPATH |
---|
57 | |
---|
58 | R_LIBS=${libdir}/R:$R_LIBS |
---|
59 | |
---|
60 | export R_LIBS |
---|
61 | |
---|
62 | RAPPTURE_PATH=${exec_prefix} |
---|
63 | |
---|
64 | export RAPPTURE_PATH |
---|