From 51c38fc7079c06414f325ca3d89192c680a834ab Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Mon, 26 Sep 2005 16:37:23 +0000 Subject: [PATCH] ./matitaclean all removes all --- helm/matita/matita.txt | 2 +- helm/matita/matitaclean.ml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/helm/matita/matita.txt b/helm/matita/matita.txt index daba1943c..535b3f475 100644 --- a/helm/matita/matita.txt +++ b/helm/matita/matita.txt @@ -101,11 +101,11 @@ TODO matitamake /x/y/z/foo/a.ma - notazione -> Luca e Zack - non chiudere transitivamente i moo ?? - - matitaclean all (non troglie i moo?) DEMONI E ALTRO DONE +- matitaclean all (non troglie i moo?) -> Gares - matitaclean (e famiglia) non cancellano le directory vuote (e per giunta il cicbrowser le mostra :-) -> Gares - missing feature unification: applicazione di teoremi (~A) quando il goal diff --git a/helm/matita/matitaclean.ml b/helm/matita/matitaclean.ml index 1a11f5fa1..f49c47de3 100644 --- a/helm/matita/matitaclean.ml +++ b/helm/matita/matitaclean.ml @@ -49,8 +49,11 @@ let _ = 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")); + " \\( -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 -- 2.39.2