X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2Fmatitadep.ml;h=966b02b09d49b7b246fc1326ff6f87a484de0a4f;hb=08791e80816548121e81e04d3ead8c9a5171d033;hp=c1ccce7808c9cdacc1c79baa21bcb96460efc562;hpb=ebc063e65d908c9f35619c92454dbbe76bdabd40;p=helm.git diff --git a/helm/matita/matitadep.ml b/helm/matita/matitadep.ml index c1ccce780..966b02b09 100644 --- a/helm/matita/matitadep.ml +++ b/helm/matita/matitadep.ml @@ -45,6 +45,8 @@ let main () = | TA.Executable (_, TA.Command (_, TA.Alias (_, TA.Ident_alias(_, uri)))) -> Hashtbl.add aliases file uri + | TA.Executable (_, TA.Command (_, TA.Include (_, path))) -> + Hashtbl.add deps file path | _ -> ()) stms; Hashtbl.iter @@ -60,6 +62,9 @@ let main () = let deps = Hashtbl.find_all deps file in let deps = List.fast_sort Pervasives.compare deps in let deps = MatitaMisc.list_uniq deps in + let deps = + List.map (fun x -> Pcre.replace ~pat:"ma$" ~templ:"moo" x) deps + in let deps = file :: deps in Printf.printf "%s: %s\n" (MatitaMisc.obj_file_of_script file) (String.concat " " deps)