make sure that the MANPATH is not set to only GMXMANPATH
authorRoland Schulz <roland@utk.edu>
Wed, 13 Oct 2010 00:58:54 +0000 (20:58 -0400)
committerRoland Schulz <roland@utk.edu>
Wed, 13 Oct 2010 00:58:54 +0000 (20:58 -0400)
under ubuntu it is empty which means getting the system path
it has to include the empty string to keep finding the system man pages

scripts/GMXRC.bash.cmakein
scripts/GMXRC.bash.in
scripts/GMXRC.csh.cmakein
scripts/GMXRC.csh.in
scripts/GMXRC.zsh.cmakein
scripts/GMXRC.zsh.in

index 9bb6cb2f02610bf086aeff805ff6cee2865319a5..52717cc5fb4c2175b159cc81c4d313445c966eca 100644 (file)
@@ -42,6 +42,9 @@ for i in `echo $MANPATH | sed "s/:/ /g"`; do
     tmppath=${tmppath}:$i
   fi
 done
+if test "$tmppath" == ""; then
+    tmppath=":"
+fi
 MANPATH=$tmppath
 
 ##########################################################
index 98270f084b2386c678da02e652900bcfada31b4d..e0b69b472df1de5a6d34aac207f4f69bf11922f8 100644 (file)
@@ -42,6 +42,9 @@ for i in `echo $MANPATH | sed "s/:/ /g"`; do
     tmppath=${tmppath}:$i
   fi
 done
+if test "$tmppath" == ""; then
+    tmppath=":"
+fi
 MANPATH=$tmppath
 
 ##########################################################
index 0f0e960947504118f408710fc89d23813b1bed77..0e18ba3dbe516b025bb8de4802daa7382c8e4744 100644 (file)
@@ -45,6 +45,9 @@ set tmppath = ""
 foreach i ( `echo $MANPATH | sed "s/:/ /g"` )
   if ( "$i" != "$GMXMAN" ) set tmppath = "${tmppath}:$i"
 end
+if ("$tmppath" == "") then
+    set tmppath = ":"
+endif
 setenv MANPATH $tmppath
 
 ##########################################################
index 2be69a4092981111d666e4b604b1d946e97214c8..766446010275e7be80aa9ab133d17b6caa4bde14 100644 (file)
@@ -45,6 +45,9 @@ set tmppath = ""
 foreach i ( `echo $MANPATH | sed "s/:/ /g"` )
   if ( "$i" != "$GMXMAN" ) set tmppath = "${tmppath}:$i"
 end
+if ("$tmppath" == "") then
+    set tmppath = ":"
+endif
 setenv MANPATH $tmppath
 
 ##########################################################
index a43250e5dc1b31b1f32108d58ed515af2dfc39f5..0a29da2418cc26a67967057f3f036f0aad8b204d 100644 (file)
@@ -42,6 +42,9 @@ for i in `echo $MANPATH | sed "s/:/ /g"`; do
     tmppath=${tmppath}:$i
   fi
 done
+if test "$tmppath" = ""; then
+    tmppath=":"
+fi
 MANPATH=$tmppath
 
 ##########################################################
index 5d83f2f1710cce1c4fcde46c999708f22a26276a..45522bbdfcdba76cd423c8fedbd1d356a9bf24c5 100644 (file)
@@ -42,6 +42,9 @@ for i in `echo $MANPATH | sed "s/:/ /g"`; do
     tmppath=${tmppath}:$i
   fi
 done
+if test "$tmppath" = ""; then
+    tmppath=":"
+fi
 MANPATH=$tmppath
 
 ##########################################################