1 | #!/bin/csh -f |
---|
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 | |
---|
18 | # If you install Rappture elsewhere, edit the line below: |
---|
19 | set exec_prefix=@INSTALL_PREFIX@ |
---|
20 | |
---|
21 | set bindir=@bindir@ |
---|
22 | set libdir=@libdir@ |
---|
23 | set python_version=@PYTHON_VERSION@ |
---|
24 | set tcl_version=@TCL_VERSION@ |
---|
25 | set octave_version=@OCTAVE_VERSION_MAJOR@ |
---|
26 | |
---|
27 | set path = ( $bindir $path ) |
---|
28 | |
---|
29 | if ( $?LD_LIBRARY_PATH ) then |
---|
30 | setenv LD_LIBRARY_PATH "${libdir}:$LD_LIBRARY_PATH" |
---|
31 | else |
---|
32 | setenv LD_LIBRARY_PATH "${libdir}" |
---|
33 | endif |
---|
34 | |
---|
35 | if ( $?DYLD_LIBRARY_PATH ) then |
---|
36 | setenv DYLD_LIBRARY_PATH "${libdir}:$DYLD_LIBRARY_PATH" |
---|
37 | else |
---|
38 | setenv DYLD_LIBRARY_PATH "${libdir}" |
---|
39 | endif |
---|
40 | |
---|
41 | if ( $?MATLABPATH ) then |
---|
42 | setenv MATLABPATH "${libdir}/matlab:$MATLABPATH" |
---|
43 | else |
---|
44 | setenv MATLABPATH "${libdir}/matlab" |
---|
45 | endif |
---|
46 | |
---|
47 | if ( $?OCTAVE_PATH ) then |
---|
48 | setenv OCTAVE_PATH "${libdir}/octave${octave_version}:$OCTAVE_PATH" |
---|
49 | else |
---|
50 | setenv OCTAVE_PATH "${libdir}/octave${octave_version}" |
---|
51 | endif |
---|
52 | |
---|
53 | if ( $?OCTAVE_LOADPATH ) then |
---|
54 | setenv OCTAVE_LOADPATH "${libdir}/octave3:$OCTAVE_LOADPATH" |
---|
55 | else |
---|
56 | setenv OCTAVE_LOADPATH "${libdir}/octave3" |
---|
57 | endif |
---|
58 | |
---|
59 | if ( $?PERL5LIB ) then |
---|
60 | setenv PERL5LIB "${libdir}/perl:$PERL5LIB" |
---|
61 | else |
---|
62 | setenv PERL5LIB "${libdir}/perl" |
---|
63 | endif |
---|
64 | |
---|
65 | if ( $?PYTHONPATH ) then |
---|
66 | setenv PYTHONPATH "${libdir}/python${python_version}/site-packages:$PYTHONPATH" |
---|
67 | else |
---|
68 | setenv PYTHONPATH "${libdir}/python${python_version}/site-packages" |
---|
69 | endif |
---|
70 | |
---|
71 | if ( $?RUBYLIB ) then |
---|
72 | setenv RUBYLIB "${libdir}/ruby:$RUBYLIB" |
---|
73 | else |
---|
74 | setenv RUBYLIB "${libdir}/ruby" |
---|
75 | endif |
---|
76 | |
---|
77 | if ( $?TCL_LIBRARY ) then |
---|
78 | setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}:$TCL_LIBRARY" |
---|
79 | else |
---|
80 | setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}" |
---|
81 | endif |
---|
82 | |
---|
83 | if ( $?TK_LIBRARY ) then |
---|
84 | setenv TK_LIBRARY "${libdir}/tk${tcl_version}:$TK_LIBRARY" |
---|
85 | else |
---|
86 | setenv TK_LIBRARY "${libdir}/tk${tcl_version}" |
---|
87 | endif |
---|
88 | |
---|
89 | if ( $?TCLLIBPATH ) then |
---|
90 | setenv TCLLIBPATH "${libdir}/tcltk/vtk $TCLLIBPATH" |
---|
91 | else |
---|
92 | setenv TCLLIBPATH "${libdir}/tcltk/vtk" |
---|
93 | endif |
---|
94 | |
---|
95 | if ( $?CLASSPATH ) then |
---|
96 | setenv CLASSPATH "${libdir}/java:$CLASSPATH" |
---|
97 | else |
---|
98 | setenv CLASSPATH "${libdir}/java" |
---|
99 | endif |
---|
100 | |
---|
101 | if ( $?R_LIBS ) then |
---|
102 | setenv R_LIBS "${libdir}/R:$R_LIBS" |
---|
103 | else |
---|
104 | setenv R_LIBS "${libdir}/R" |
---|
105 | endif |
---|
106 | |
---|
107 | setenv RAPPTURE_PATH "${exec_prefix}" |
---|