Merge release-4-6 into master
[alexxy/gromacs.git] / scripts / GMXRC.cmakein
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
8 # only csh/tcsh understand 'set'
9 set is_csh = 123
10 test "$is_csh" = 123 && goto CSH
11
12 # if we got here, shell is bsh/bash/zsh/ksh
13 . @BIN_INSTALL_DIR@/GMXRC.bash
14 return
15
16 # csh/tcsh jump here
17 CSH:
18 source @BIN_INSTALL_DIR@/GMXRC.csh
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36