From: Jérémie D. <Ba...@us...> - 2011-03-17 17:38:14
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "krobot". The branch, master has been updated via a2b57864d1452b99d01b96efdc7aea7765f3a566 (commit) from 0ef1a91b2e2b76850c49e886509582c29fedca10 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit a2b57864d1452b99d01b96efdc7aea7765f3a566 Author: Jérémie Dimino <je...@di...> Date: Thu Mar 17 18:37:48 2011 +0100 [info] use Krobot_init in programs ----------------------------------------------------------------------- Changes: diff --git a/info/control2011/src/lib/krobot_init.ml b/info/control2011/src/lib/krobot_init.ml index 65ddc81..7798d21 100644 --- a/info/control2011/src/lib/krobot_init.ml +++ b/info/control2011/src/lib/krobot_init.ml @@ -27,7 +27,7 @@ let () = None) let program_name = Filename.basename Sys.executable_name -let usage = Printf.sprintf "%s <options>" program_name +let usage = Printf.sprintf "Usage: %s <options>\noptions are:" program_name (* +-----------------------------------------------------------------+ | Command line arguments | diff --git a/info/control2011/src/tools/krobot_dump.ml b/info/control2011/src/tools/krobot_dump.ml index fd0e339..cb58243 100644 --- a/info/control2011/src/tools/krobot_dump.ml +++ b/info/control2011/src/tools/krobot_dump.ml @@ -13,7 +13,7 @@ open Lwt open Lwt_react lwt () = - lwt bus = Krobot_bus.get () in + lwt bus = Krobot_init.init_program "Dump" in E.keep (E.map_s diff --git a/info/control2011/src/tools/krobot_plot.ml b/info/control2011/src/tools/krobot_plot.ml index 26768b2..393377f 100644 --- a/info/control2011/src/tools/krobot_plot.ml +++ b/info/control2011/src/tools/krobot_plot.ml @@ -91,6 +91,8 @@ let draw window graph = +-----------------------------------------------------------------+ *) lwt () = + lwt bus = Krobot_init.init_program "Plot" in + ignore (GMain.init ()); Lwt_glib.install (); @@ -107,8 +109,6 @@ lwt () = (* Draw in a separate thread. *) ignore (Thread.create (fun () -> draw window graph) ()); - lwt bus = Krobot_bus.get () in - E.keep (E.map (function hooks/post-receive -- krobot |