source: trunk/gui/apps/rappture-csh.env.in @ 3755

Last change on this file since 3755 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 2.7 KB
RevLine 
[1173]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
[3177]11#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
[1173]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:
[2095]19set exec_prefix=@INSTALL_PREFIX@
[1173]20
[1583]21set bindir=@bindir@
22set libdir=@libdir@
[1679]23set vtkdir=@VTKDIR@
24set python_version=@PYTHON_VERSION@
25set tcl_version=@TCL_VERSION@
[2183]26set octave_version=@OCTAVE_VERSION_MAJOR@
[1173]27
28set path = ( $bindir $path )
29
[1184]30if ( $?LD_LIBRARY_PATH ) then
[1679]31  setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:$LD_LIBRARY_PATH"
[1186]32else
[1679]33  setenv LD_LIBRARY_PATH "${libdir}:${vtkdir}:${libdir}/vtk"
[1184]34endif
[1173]35
[1184]36if ( $?DYLD_LIBRARY_PATH ) then
[1679]37  setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}:$DYLD_LIBRARY_PATH"
[1185]38else
[1679]39  setenv DYLD_LIBRARY_PATH "${libdir}:${vtkdir}"
[1184]40endif
[1173]41
[1184]42if ( $?MATLABPATH ) then
[1185]43  setenv MATLABPATH "${libdir}/matlab:$MATLABPATH"
44else
[1184]45  setenv MATLABPATH "${libdir}/matlab"
46endif
47
48if ( $?OCTAVE_PATH ) then
[1989]49  setenv OCTAVE_PATH "${libdir}/octave${octave_version}:$OCTAVE_PATH"
[1185]50else
[1989]51  setenv OCTAVE_PATH "${libdir}/octave${octave_version}"
[1184]52endif
53
[1411]54if ( $?OCTAVE_LOADPATH ) then
[1989]55  setenv OCTAVE_LOADPATH "${libdir}/octave3:$OCTAVE_LOADPATH"
[1411]56else
[1989]57  setenv OCTAVE_LOADPATH "${libdir}/octave3"
[1411]58endif
59
[1184]60if ( $?PERL5LIB ) then
[1185]61  setenv PERL5LIB "${libdir}/perl:$PERL5LIB"
62else
[1184]63  setenv PERL5LIB "${libdir}/perl"
64endif
65
[1679]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
[1184]72if ( $?RUBYLIB ) then
[1185]73  setenv RUBYLIB "${libdir}/ruby:$RUBYLIB"
74else
[1184]75  setenv RUBYLIB "${libdir}/ruby"
76endif
77
78if ( $?TCL_LIBRARY ) then
[1679]79  setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}:$TCL_LIBRARY"
[1185]80else
[1679]81  setenv TCL_LIBRARY "${libdir}/tcl${tcl_version}"
[1184]82endif
83
84if ( $?TK_LIBRARY ) then
[1679]85  setenv TK_LIBRARY "${libdir}/tk${tcl_version}:$TK_LIBRARY"
[1185]86else
[1679]87  setenv TK_LIBRARY "${libdir}/tk${tcl_version}"
[1184]88endif
89
[1679]90if ( $?TCLLIBPATH ) then
91  setenv TCLLIBPATH "${vtkdir} $TCLLIBPATH"
[1185]92else
[1679]93  setenv TCLLIBPATH "${vtkdir}"
[1184]94endif
[1783]95
96if ( $?CLASSPATH ) then
97  setenv CLASSPATH "${libdir}/java:$CLASSPATH"
98else
99  setenv CLASSPATH "${libdir}/java"
100endif
101 
[2715]102if ( $?R_LIBS ) then
103  setenv R_LIBS "${libdir}/R:$R_LIBS"
104else
105  setenv R_LIBS "${libdir}/R"
106endif
Note: See TracBrowser for help on using the repository browser.