]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitadep.ml
packaging cleanup: get rid of ancient debhelpers, use dh_install
[helm.git] / helm / matita / matitadep.ml
index 88cac82807ff10953bb6549372b70c5a49b94de2..0676aa93ec290e15c50bf581b1e27c6379192ace 100644 (file)
@@ -95,7 +95,14 @@ let main () =
               (_, TA.Alias (_, TA.Ident_alias(_, uri)))) -> 
                 Hashtbl.add aliases file uri
           | TA.Executable (_, TA.Command (_, TA.Include (_, path))) ->
-              Hashtbl.add deps file (MatitaMisc.obj_file_of_script (find path))
+             if path <> "coq.ma" then
+              (try
+                Hashtbl.add deps file (MatitaMisc.obj_file_of_script (find path))
+               with
+                Sys_error _ ->
+                 MatitaLog.error
+                  ("In file " ^ file ^ " unable to include " ^ path)
+              )
           | _ -> ()
         with 
           CicNotationParser.Parse_error _ as exn ->