]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaclean.ml
matitaclean all now destroys the .matita/xml directory
[helm.git] / helm / matita / matitaclean.ml
index 553823904d5d9561a666db356b1e196c3bd297a0..c7bbdf453a3f8e989a67bacc26a48be1b195a19e 100644 (file)
@@ -50,6 +50,12 @@ let _ =
   if Sys.argv.(1) = "all" then 
     begin
       MatitaDb.clean_owner_environment ();
+      let xmldir = Helm_registry.get "matita.basedir" ^ "/xml" in
+      ignore
+       (Sys.command
+         ("find " ^ xmldir ^
+          " -name *.xml.gz -o -name *.moo -exec rm {} \\; 2> /dev/null"));
+      ignore (Sys.command ("find " ^ xmldir ^ " -type d -exec rmdir -p {} \\; 2> /dev/null"));
       exit 0
     end
   let uris_to_remove =ref [] in