Merge branch 'master' of git@git.gromacs.org:gromacs
[gromacs/rigid-bodies.git] / scripts / GMXRC.csh.in
blobdf11b3ee60d27837258630568fee065160617d3e
1 # csh/tcsh configuration file for Gromacs.
2 # First we remove previous Gromacs stuff from paths 
3 # by selecting everything else. 
4 # Removal is not 100% necessary, but very useful when we
5 # repeatedly switch between gmx versions in a shell.
7 # zero possibly unset vars to avoid warnings
8 if (! $?LD_LIBRARY_PATH) setenv LD_LIBRARY_PATH ""
9 if (! $?PATH) setenv PATH ""
10 if (! $?MANPATH) setenv MANPATH ""
11 if (! $?GMXLDLIB) setenv GMXLDLIB ""
12 if (! $?GMXBIN) setenv GMXBIN ""
13 if (! $?GMXMAN) setenv GMXMAN ""
15 # remove previous gromacs part from ld_library_path
16 set tmppath = ""
17 foreach i ( `echo $LD_LIBRARY_PATH | sed "s/:/ /g"` )
18   if ( "$i" != "$GMXLDLIB" ) set tmppath = "${tmppath}:$i"
19 end
20 setenv LD_LIBRARY_PATH $tmppath
22 # remove gromacs stuff from binary path
23 set tmppath = ""
24 foreach i ( `echo $PATH | sed "s/:/ /g"` )
25   if ( "$i" != "$GMXBIN" ) set tmppath = "${tmppath}:$i"
26 end
27 setenv PATH $tmppath
29 # and remove stuff from manual path
30 set tmppath = ""
31 foreach i ( `echo $MANPATH | sed "s/:/ /g"` )
32   if ( "$i" != "$GMXMAN" ) set tmppath = "${tmppath}:$i"
33 end
34 setenv MANPATH $tmppath
36 ##########################################################
37 # This is the real configuration part. We save the Gromacs
38 # things in separate vars, so we can remove them later.
39 # If you move gromacs, change the next four line.
40 ##########################################################
41 setenv GMXBIN @bindir@
42 setenv GMXLDLIB @libdir@
43 setenv GMXMAN @mandir@
44 setenv GMXDATA @datadir@
46 # old variables begin with ':' now, or are empty.
47 setenv PATH ${GMXBIN}${PATH}
48 setenv LD_LIBRARY_PATH ${GMXLDLIB}${LD_LIBRARY_PATH}
49 setenv MANPATH ${GMXMAN}${MANPATH}
51 setenv GMXFONT  10x20
53 # Read completions if we understand it (i.e. have tcsh)
54 if { complete >& /dev/null } then
55   if ( -f $GMXBIN/completion.csh ) source $GMXBIN/completion.csh
56 endif