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