]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitacLib.ml
This commit was manufactured by cvs2svn to create tag
[helm.git] / helm / matita / matitacLib.ml
index d82d3f7555db5a5c8335d62b290b0fc93c36137c..c16915e63c9cbeb11c97cf60a457104e746a2446 100644 (file)
@@ -136,9 +136,9 @@ let main ~mode =
     let hou = 
       if tm.Unix.tm_hour > 0 then (string_of_int tm.Unix.tm_hour ^ "h ") else "" 
     in
-    let proof_status = 
+    let proof_status,moo_content_rev = 
       match !status with
-      | Some s -> !s.proof_status
+      | Some s -> !s.proof_status, !s.moo_content_rev
       | None -> assert false
     in
     if proof_status <> MatitaTypes.No_proof then
@@ -149,9 +149,13 @@ let main ~mode =
      end
     else
      begin
+       let os = open_out (MatitaMisc.obj_file_of_script fname) in
+       let output s = output_string os s in
+       output "(* GENERATED FILE: DO NOT EDIT! *)\n\n";
+       List.iter output (List.rev moo_content_rev);
+       close_out os;
        MatitaLog.message 
          (sprintf "execution of %s completed in %s." fname (hou^min^sec));
-         close_out (open_out (MatitaMisc.obj_file_of_script fname));
        exit 0
      end
   with