diff options
Diffstat (limited to 'contrib/xml')
-rw-r--r-- | contrib/xml/xml.ml4 | 2 | ||||
-rw-r--r-- | contrib/xml/xmlcommand.ml | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/contrib/xml/xml.ml4 b/contrib/xml/xml.ml4 index e2d04cb7..5b217119 100644 --- a/contrib/xml/xml.ml4 +++ b/contrib/xml/xml.ml4 @@ -70,7 +70,7 @@ let pp strm fn = let ch = open_out filename in pp_ch strm ch; close_out ch ; - print_string ("\nWriting on file \"" ^ filename ^ "\" was succesful\n"); + print_string ("\nWriting on file \"" ^ filename ^ "\" was successful\n"); flush stdout | None -> pp_ch strm stdout diff --git a/contrib/xml/xmlcommand.ml b/contrib/xml/xmlcommand.ml index 1ae18661..f4719594 100644 --- a/contrib/xml/xmlcommand.ml +++ b/contrib/xml/xmlcommand.ml @@ -662,21 +662,21 @@ let _ = | Some fn -> let ch = open_out (fn ^ ".v") in Buffer.output_buffer ch theory_buffer ; + close_out ch; + (* dummy glob file *) + let ch = open_out (fn ^ ".glob") in close_out ch end ; Option.iter (fun fn -> let coqdoc = Filename.concat (Envars.coqbin ()) ("coqdoc" ^ Coq_config.exec_extension) in let options = " --html -s --body-only --no-index --latin1 --raw-comments" in - let dir = Option.get xml_library_root in let command cmd = if Sys.command cmd <> 0 then Util.anomaly ("Error executing \"" ^ cmd ^ "\"") in - command (coqdoc^options^" -d "^dir^" "^fn^".v"); - let dot = if fn.[0]='/' then "." else "" in - command ("mv "^dir^"/"^dot^"*.html "^fn^".xml "); - command ("rm "^fn^".v"); + command (coqdoc^options^" -o "^fn^".xml "^fn^".v"); + command ("rm "^fn^".v "^fn^".glob"); print_string("\nWriting on file \"" ^ fn ^ ".xml\" was successful\n")) ofn) ;; |