- matitadep: improved parsing of input
Hashtbl.iter iter graph
let rec read ich =
- let _ = Scanf.fscanf ich "%s@:include \"%s@\". " init in
+ let _ = Scanf.sscanf (input_line ich) "%s@:include \"%s@\"." init in
read ich
let _ =
module O = Options
let remove_dir dir =
+ let map name = Y.remove (F.concat dir name) in
+ let rec rmdir dir =
+ U.rmdir dir; (* Sys.remove does not seem to remove empty directories *)
+ rmdir (F.dirname dir)
+ in
if Y.file_exists dir then begin
- let map name = Y.remove (F.concat dir name) in
A.iter map (Y.readdir dir);
- U.rmdir dir (* Sys.remove does not seem to remove empty directories *)
+ try rmdir dir with U.Unix_error _ -> ()
end
let objects () =