Add initial support for python bindings
[alexxy/gromacs.git] / scripts / GMXRC.cmakein
index 9917088959a64eb63ea7fee6b1894c1e0c0497b1..1ecf954885797f38d975eab5204677e8c9e72aeb 100644 (file)
@@ -4,33 +4,15 @@
 #
 # If you only use one shell you can copy that GMXRC.* instead.
 
-
-# only csh/tcsh understand 'set'
-set is_csh = 123
-test "$is_csh" = 123 && goto CSH
+# 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
-. @BIN_INSTALL_DIR@/GMXRC.bash
+. @CMAKE_INSTALL_PREFIX@/@BIN_INSTALL_DIR@/GMXRC.bash
 return
 
 # csh/tcsh jump here
 CSH:
-source @BIN_INSTALL_DIR@/GMXRC.csh
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+source @CMAKE_INSTALL_PREFIX@/@BIN_INSTALL_DIR@/GMXRC.csh