1 module HGT = Http_getter_types;;
2 module HG = Http_getter;;
3 module UM = UriManager;;
4 module TA = TacticAst;;
7 Helm_registry.load_from "matita.conf.xml";
9 MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner")
11 let main uri_to_remove = MatitacleanLib.clean_baseuris uri_to_remove
15 prerr_endline "usage:";
16 prerr_endline "\tmatitaclean all";
17 prerr_endline "\tmatitaclean (uri|file)+";
24 Http_getter_logger.log "Sync map tree to disk...";
25 Http_getter.sync_dump_file ();
26 print_endline "\nThanks for using Matita!\n");
27 if Array.length Sys.argv < 2 then usage ();
28 if Sys.argv.(1) = "all" then
30 MatitaDb.reset_owner_environment ();
33 let uri_to_remove =ref [] in
35 for i = 1 to Array.length Sys.argv - 1 do
36 let suri = Sys.argv.(i) in
39 UM.buri_of_uri (UM.uri_of_string suri)
41 UM.IllFormedUri _ -> MatitacleanLib.baseuri_of_file suri
43 uri_to_remove := uri :: !uri_to_remove
46 Invalid_argument _ -> usage ());