X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fmatita%2FmatitacLib.ml;h=9cc063271d801902cd5375661e5a850458fe9424;hb=49430a1d657ec9521619ea35fe911b598f055df9;hp=9165d5a8b7e6ec659a142993cc678ab8d8a2376a;hpb=476120b3d6bbe1372281fc5ad1c3a72a4954b546;p=helm.git diff --git a/helm/matita/matitacLib.ml b/helm/matita/matitacLib.ml index 9165d5a8b..9cc063271 100644 --- a/helm/matita/matitacLib.ml +++ b/helm/matita/matitacLib.ml @@ -88,7 +88,7 @@ let fname () = Arg.parse arg_spec add_script usage; match !acc with | [x] -> x - | _ -> prerr_endline usage; exit 1 + | _ -> print_endline usage; exit 1 let pp_ocaml_mode () = MatitaLog.message ""; @@ -137,9 +137,10 @@ let go () = CicNotation.load_notation BuildTimeConf.core_notation_script; Http_getter.init (); MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner"); + MatitaDb.create_owner_environment (); CicEnvironment.set_trust (* environment trust *) (let trust = Helm_registry.get_bool "matita.environment_trust" in - fun _ -> trust) + fun _ -> trust); status := Some (ref (Lazy.force MatitaEngine.initial_status)); Sys.catch_break true; interactive_loop () @@ -148,7 +149,9 @@ let dump_moo_to_file file moo = let os = open_out (MatitaMisc.obj_file_of_script file) in let output s = output_string os s in output "(* GENERATED FILE: DO NOT EDIT! *)\n\n"; - List.iter output (List.rev moo); + List.iter + (fun cmd -> output (GrafiteAstPp.pp_command cmd ^ "\n")) + (List.rev moo); close_out os let main ~mode = @@ -159,7 +162,7 @@ let main ~mode = MatitaDb.create_owner_environment (); CicEnvironment.set_trust (* environment trust *) (let trust = Helm_registry.get_bool "matita.environment_trust" in - fun _ -> trust) + fun _ -> trust); status := Some (ref (Lazy.force MatitaEngine.initial_status)); Sys.catch_break true; let origcb = MatitaLog.get_log_callback () in