1 module UM = UriManager;;
2 module TA = TacticAst;;
5 Helm_registry.load_from "matita.conf.xml";
7 MetadataTypes.ownerize_tables (Helm_registry.get "matita.owner");
8 MatitaDb.create_owner_environment ()
10 let main uri_to_remove = MatitacleanLib.clean_baseuris uri_to_remove
14 prerr_endline "usage:";
15 prerr_endline "\tmatitaclean all";
16 prerr_endline "\t\tcleans the whole environment";
17 prerr_endline "\tmatitaclean files...";
18 prerr_endline "\t\tcleans the output of the compilation of files...\n";
23 if Array.length Sys.argv < 2 then usage ();
24 if Sys.argv.(1) = "all" then
26 MatitaDb.clean_owner_environment ();
29 let uri_to_remove =ref [] in
31 for i = 1 to Array.length Sys.argv - 1 do
32 let suri = Sys.argv.(i) in
35 UM.buri_of_uri (UM.uri_of_string suri)
37 UM.IllFormedUri _ -> MatitacleanLib.baseuri_of_file suri
39 uri_to_remove := uri :: !uri_to_remove
42 Invalid_argument _ -> usage ());