fixed 624db1bb
authorRoland Shulz <z8g@moldyn.(none)>
Sat, 9 Oct 2010 00:02:04 +0000 (20:02 -0400)
committerRoland Shulz <z8g@moldyn.(none)>
Sat, 9 Oct 2010 00:20:58 +0000 (20:20 -0400)
applied those change also to autoconf GMXRC templates

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

index 1f7110e4d9cc964526a48e3e4ad3d94ecdf44410..9bb6cb2f02610bf086aeff805ff6cee2865319a5 100644 (file)
@@ -8,7 +8,7 @@
 tmppath=""
 for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
   if test "$i" != "$GMXLDLIB"; then
-    if test ${tmppath} == ""; then
+    if test "${tmppath}" == ""; then
       tmppath=$i
     else
     tmppath=${tmppath}:$i
index fcad8c712410164a6fcbc82669004735d899f778..98270f084b2386c678da02e652900bcfada31b4d 100644 (file)
@@ -8,8 +8,12 @@
 tmppath=""
 for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
   if test "$i" != "$GMXLDLIB"; then
+    if test "${tmppath}" == ""; then
+      tmppath=$i
+    else
     tmppath=${tmppath}:$i
   fi
+  fi
 done
 LD_LIBRARY_PATH=$tmppath
 
index f4dc0df8046c7abc36ea7489aa41c94b94dce486..2be69a4092981111d666e4b604b1d946e97214c8 100644 (file)
@@ -16,7 +16,13 @@ if (! $?GMXMAN) setenv GMXMAN ""
 # remove previous gromacs part from ld_library_path
 set tmppath = ""
 foreach i ( `echo $LD_LIBRARY_PATH | sed "s/:/ /g"` )
-  if ( "$i" != "$GMXLDLIB" ) set tmppath = "${tmppath}:$i"
+  if ( "$i" != "$GMXLDLIB" ) then
+    if ("${tmppath}" == "") then
+      set tmppath = "$i"
+    else
+      set tmppath = "${tmppath}:$i"
+    endif
+  endif
 end
 setenv LD_LIBRARY_PATH $tmppath
 
index 87d0ae533006f27fbfa537a54619625166271e0c..a43250e5dc1b31b1f32108d58ed515af2dfc39f5 100644 (file)
@@ -8,7 +8,7 @@
 tmppath=""
 for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
   if test "$i" != "$GMXLDLIB"; then
-    if test ${tmppath} == ""; then
+    if test "${tmppath}" = ""; then
       tmppath=$i
     else
     tmppath=${tmppath}:$i
index 079c29bb35d4b3f5168b686cf221322df8826212..5d83f2f1710cce1c4fcde46c999708f22a26276a 100644 (file)
@@ -8,8 +8,12 @@
 tmppath=""
 for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
   if test "$i" != "$GMXLDLIB"; then
+    if test "${tmppath}" = ""; then
+      tmppath=$i
+    else
     tmppath=${tmppath}:$i
   fi
+  fi
 done
 LD_LIBRARY_PATH=$tmppath