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