Commit 7de084c8 authored by Bruno Guillaume's avatar Bruno Guillaume

0.46.0 (replace) Fix myocamlbuild.ml

parent c9fc7f09
open Ocamlbuild_plugin
let read file =
let in_ch = open_in file in
try
......@@ -11,10 +11,9 @@ let read file =
let () =
dispatch begin function
| After_rules ->
let data_dir = "\""^(read "DATA_DIR")^"\""
and version = "\""^(read "VERSION")^"\"" in
let pp_src = S[A"-pp"; A("cppo -D 'VERSION "^version^"' -D 'DATA_DIR "^data_dir^"'")] in
let version = "\""^(read "VERSION")^"\"" in
let pp_src = S[A"-pp"; A("cppo -D 'VERSION "^version^"'")] in
flag ["ocaml"; "ocamldep"] & pp_src;
flag ["ocaml"; "compile"] & pp_src;
flag ["ocaml"; "compile"] & pp_src;
| _ -> ()
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment