]> matita.cs.unibo.it Git - helm.git/blobdiff - components/library/librarian.ml
beginning to see the light
[helm.git] / components / library / librarian.ml
index cc3c96999453a8e88d1b42560c550acc347f3a0e..db6b815746398f3c0305f5088f8c220316c12a03 100644 (file)
@@ -1,3 +1,5 @@
+let debug = false;;
+
 exception NoRootFor of string
 
 let absolutize path =
@@ -91,7 +93,8 @@ let baseuri_of_script ~include_paths file =
   in
   let extra_buri = substract lpath lroot in
   let chop name = 
-    assert(Filename.check_suffix name ".ma");
+    assert(Filename.check_suffix name ".ma" ||
+      Filename.check_suffix name ".mma");
     try Filename.chop_extension name
     with Invalid_argument "Filename.chop_extension" -> name
   in
@@ -147,7 +150,7 @@ module type Format =
 
 module Make = functor (F:Format) -> struct
 
-  let prerr_endline _ = ();; 
+  let prerr_endline s = if debug then prerr_endline ("make: "^s);; 
 
   let younger_s_t a b = 
     match F.mtime_of_source_object a, F.mtime_of_target_object b with