source: branches/1.3/gui/apps/rappture-csh.env.in @ 4518

Last change on this file since 4518 was 4518, checked in by gah, 7 years ago

fix vtk tcl path

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