set first
echo -n "plot">plot.cmd
foreach fi ( ../*/*.time )
  set sim = `basename $fi .time`
  ../../plot/xTime $fi
  if $?first then
    unset first
  else
    echo ", \">>plot.cmd
  endif
  echo -n '  "'$sim.plt'"' using 4:1:2:3 title '"'$sim'"' with errorbars \
	>>plot.cmd
end
foreach fi (../../win/tlcWalk/*/*.time)
  set sim = `basename $fi .time`
  ../../plot/${sim}Time $fi
  echo ", \">>plot.cmd
  echo -n '  "'$sim.plt'"' using 4:1:2:3 title '"'$sim'"' with errorbars \
	>>plot.cmd
end
echo "">>plot.cmd
echo "pause -1">>plot.cmd
unset sim
