BuildTimeConf.stdlib_dir_devel;
BuildTimeConf.stdlib_dir_installed ; ]
in
+ let absolutize s =
+ if Pcre.pmatch ~pat:"^/" s then s else Sys.getcwd() ^"/"^s
+ in
let args = ref [] in
let add_l l = fun s -> l := s :: !l in
let reduce_verbosity () =
std_arg_spec @ debug_arg_spec @ !extra_cmdline_specs
in
let set_list ~key l =
- Helm_registry.set_list Helm_registry.of_string ~key ~value:(List.rev !l)
+ Helm_registry.set_list Helm_registry.of_string ~key ~value:(List.rev l)
in
Arg.parse arg_spec (add_l args) (usage ());
+ let includes = List.map absolutize !includes in
set_list ~key:"matita.includes" includes;
- args := List.filter (fun x -> x <> "") !args;
+ let args = List.filter (fun x -> x <> "") !args in
set_list ~key:"matita.args" args;
HExtlib.set_profiling_printings
(fun s ->
(ActionCancelled
("Internal error: "^f_pwd^" exists but I'm unable to include it!"))
in
- let handle_with_devel d lexiconfile exc =
+ let handle_with_devel d lexiconfile mafile exc =
let name = MatitamakeLib.name_for_development d in
let title = "Unable to include " ^ lexiconfile in
let message =
- lexiconfile ^ " is handled by development <b>" ^ name ^ "</b>.\n\n" ^
+ mafile ^ " is handled by development <b>" ^ name ^ "</b>.\n\n" ^
"<i>Should I compile it and Its dependencies?</i>"
in
(match guistuff.ask_confirmation ~title ~message with
* but was unable to get the compilation output 'xfilename' *)
match MatitamakeLib.development_for_dir (Filename.dirname mafilename) with
| None -> handle_without_devel mafilename exn
- | Some d -> handle_with_devel d xfilename exn
+ | Some d -> handle_with_devel d xfilename mafilename exn
;;
let eval_with_engine