~ubuntu-branches/debian/sid/ocaml/sid

« back to all changes in this revision

Viewing changes to ocamldoc/odoc_args.ml

  • Committer: Bazaar Package Importer
  • Author(s): Stephane Glondu
  • Date: 2009-06-24 12:47:31 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624124731-7wao0d0mnk4d71ee
Remove build-dependency to docbook-* (not needed anymore, since
policy has been moved to dh-ocaml)

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
(*                                                                     *)
10
10
(***********************************************************************)
11
11
 
12
 
(* cvsid $Id: odoc_args.ml,v 1.22 2008/07/25 13:28:23 guesdon Exp $ *)
 
12
(* cvsid $Id: odoc_args.ml,v 1.22.2.1 2009/04/09 13:56:38 guesdon Exp $ *)
13
13
 
14
14
(** Command-line arguments. *)
15
15
 
24
24
 
25
25
let include_dirs = Clflags.include_dirs
26
26
 
27
 
let bytecode_mode = ref true
28
 
 
29
27
class type doc_generator =
30
28
    object
31
29
      method generate : Odoc_module.t_module list -> unit
254
252
  "-dot", Arg.Unit (fun () -> set_doc_generator !default_dot_generator), M.generate_dot ;
255
253
  "-customdir", Arg.Unit (fun () -> Printf.printf "%s\n" Odoc_config.custom_generators_path; exit 0),
256
254
  M.display_custom_generators_dir ;
257
 
  "-i", Arg.String (fun s -> if !bytecode_mode then () else (prerr_endline (M.option_not_in_native_code "-i"); exit 1)),
258
 
  M.add_load_dir ;
259
 
  "-g", Arg.String (fun s -> if !bytecode_mode then () else (prerr_endline (M.option_not_in_native_code "-g"); exit 1)),
260
 
  M.load_file ^
 
255
  "-i", Arg.String (fun s -> ()), M.add_load_dir ;
 
256
  "-g", Arg.String (fun s -> ()), M.load_file ^
261
257
  "\n\n *** HTML options ***\n";
262
258
 
263
259
(* html only options *)