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-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 | |
---|
18 | # If you install Rappture elsewhere, edit the line below: |
---|
19 | set destdir=@prefix@ |
---|
20 | |
---|
21 | set bindir=${destdir}/bin |
---|
22 | set libdir=${destdir}/lib |
---|
23 | |
---|
24 | set path = ( $bindir $path ) |
---|
25 | |
---|
26 | if ( $?TCLLIBPATH ) then |
---|
27 | setenv TCLLIBPATH "${libdir}/vtk $TCLLIBPATH" |
---|
28 | else |
---|
29 | setenv TCLLIBPATH "${libdir}/vtk" |
---|
30 | endif |
---|
31 | |
---|
32 | if ( $?LD_LIBRARY_PATH ) then |
---|
33 | setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk:$LD_LIBRARY_PATH" |
---|
34 | else |
---|
35 | setenv LD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2:${libdir}/vtk" |
---|
36 | endif |
---|
37 | |
---|
38 | if ( $?DYLD_LIBRARY_PATH ) then |
---|
39 | setenv DYLD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2/${libdir}/vtk:$DYLD_LIBRARY_PATH" |
---|
40 | else |
---|
41 | setenv DYLD_LIBRARY_PATH "${libdir}:${libdir}/vtk-5.2/${libdir}/vtk" |
---|
42 | endif |
---|
43 | |
---|
44 | if ( $?MATLABPATH ) then |
---|
45 | setenv MATLABPATH "${libdir}/matlab:$MATLABPATH" |
---|
46 | else |
---|
47 | setenv MATLABPATH "${libdir}/matlab" |
---|
48 | endif |
---|
49 | |
---|
50 | if ( $?OCTAVE_PATH ) then |
---|
51 | setenv OCTAVE_PATH "${libdir}/octave:$OCTAVE_PATH" |
---|
52 | else |
---|
53 | setenv OCTAVE_PATH "${libdir}/octave" |
---|
54 | endif |
---|
55 | |
---|
56 | if ( $?OCTAVE_LOADPATH ) then |
---|
57 | setenv OCTAVE_LOADPATH "${libdir}/octave:$OCTAVE_LOADPATH" |
---|
58 | else |
---|
59 | setenv OCTAVE_LOADPATH "${libdir}/octave" |
---|
60 | endif |
---|
61 | |
---|
62 | if ( $?PERL5LIB ) then |
---|
63 | setenv PERL5LIB "${libdir}/perl:$PERL5LIB" |
---|
64 | else |
---|
65 | setenv PERL5LIB "${libdir}/perl" |
---|
66 | endif |
---|
67 | |
---|
68 | if ( $?RUBYLIB ) then |
---|
69 | setenv RUBYLIB "${libdir}/ruby:$RUBYLIB" |
---|
70 | else |
---|
71 | setenv RUBYLIB "${libdir}/ruby" |
---|
72 | endif |
---|
73 | |
---|
74 | if ( $?TCL_LIBRARY ) then |
---|
75 | setenv TCL_LIBRARY "${libdir}/tcl8.4:$TCL_LIBRARY" |
---|
76 | else |
---|
77 | setenv TCL_LIBRARY "${libdir}/tcl8.4" |
---|
78 | endif |
---|
79 | |
---|
80 | if ( $?TK_LIBRARY ) then |
---|
81 | setenv TK_LIBRARY "${libdir}/tk8.4:$TK_LIBRARY" |
---|
82 | else |
---|
83 | setenv TK_LIBRARY "${libdir}/tk8.4" |
---|
84 | endif |
---|
85 | |
---|
86 | if ( $?PYTHONPATH ) then |
---|
87 | setenv PYTHONPATH "${libdir}/python2.5/site-packages:$PYTHONPATH" |
---|
88 | else |
---|
89 | setenv PYTHONPATH "${libdir}/python2.5/site-packages" |
---|
90 | endif |
---|