File: GMXRC.cmakein

package info (click to toggle)
gromacs 2020.6-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 172,184 kB
  • sloc: cpp: 490,183; xml: 255,123; ansic: 38,620; python: 13,747; sh: 3,333; perl: 2,457; yacc: 644; fortran: 397; makefile: 246; lisp: 214; lex: 129; awk: 68; csh: 39
file content (18 lines) | stat: -rw-r--r-- 612 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This is a convenience script to determine which
# type of shell you have, and then run GMXRC.[csh|bash|zsh]
# from the Gromacs binary directory.
#
# If you only use one shell you can copy that GMXRC.* instead.

# only csh/tcsh set the variable $shell (note: lower case!)
# but check for the contents to be sure, since some environments may
# set it also for other shells
echo $shell | grep -q csh && goto CSH

# if we got here, shell is bsh/bash/zsh/ksh
. @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/GMXRC.bash
return

# csh/tcsh jump here
CSH:
source @CMAKE_INSTALL_PREFIX@/@CMAKE_INSTALL_BINDIR@/GMXRC.csh