source: branches/1.5/apps/rappture-csh.env.in @ 5901

Last change on this file since 5901 was 5901, checked in by gah, 9 years ago

first pass on new build

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