| 1 |
# This is a convenience script to determine which |
| 2 |
# type of shell you have, and then run GMXRC.[csh|bash|zsh] |
| 3 |
# from the Gromacs binary directory. |
| 4 |
# |
| 5 |
# If you only use one shell you can copy that GMXRC.* instead. |
| 6 |
|
| 7 |
# only csh/tcsh set the variable $shell (note: lower case!) |
| 8 |
# but check for the contents to be sure, since some environments may |
| 9 |
# set it also for other shells |
| 10 |
echo $shell | grep -q csh && goto CSH |
| 11 |
|
| 12 |
# if we got here, shell is bsh/bash/zsh/ksh |
| 13 |
. @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/GMXRC.bash |
| 14 |
return |
| 15 |
|
| 16 |
# csh/tcsh jump here |
| 17 |
CSH: |
| 18 |
source @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/GMXRC.csh |