P27ILID2JNRMIXJNW47AWFYDU37BXQETA63W742HWVWGAXEET4QQC let run_shell (spec : Elpe.std_derivation) cmd =Lwt_main.run(let open Lwt.Syntax inlet port = 50051 inlet address = "127.0.0.1" inlet* c = connection address port inElpe.backend_conn := Some c;let* b = spec#setup in
let run_shell (spec : Elpe.derivation) cmd =let* b = spec#setup in
let pid =Unix.create_process(bash ^ "/usr/bin/bash-static")(match cmd with| None -> [| "bash"; "--init-file"; f; "-i" |]| Some cmd -> [| "bash"; "--init-file"; f; "-i"; "-c"; cmd |])Unix.stdin Unix.stdout Unix.stderrin
let pid =Unix.create_process(bash ^ "/usr/bin/bash-static")(match cmd with| None -> [| "bash"; "--init-file"; f; "-i" |]| Some cmd -> [| "bash"; "--init-file"; f; "-i"; "-c"; cmd |])Unix.stdin Unix.stdout Unix.stderrin
Lwt_main.run(let open Lwt.Syntax inlet port = 50051 inlet address = "127.0.0.1" inlet* c = connection address port inElpe.backend_conn := Some c;let* b = spec#build inprint_endline (List.fold_left (fun _ x -> x) "" b.destdir);Lwt.return ())
let* b = spec#build inprint_endline (List.fold_left (fun _ x -> x) "" b.destdir);Lwt.return ()
compile files;match !Elpe.last_built_module with| None -> Unix._exit 0| Some last -> Unix._exit (run_shell last cmd))
Lwt_main.run(let* _ = compile (if files = [] then [ "build.ml" ] else files) inmatch !Elpe.last_built_module with| None -> Unix._exit 0| Some last ->let* last = last inlet* shell = run_shell last cmd inUnix._exit shell))
compile (if files = [] then [ "build.ml" ] else files);let _ =match !Elpe.last_built_module with| None -> ()| Some last -> run_build (last :> Elpe.derivation)in())
Lwt_main.run(let* _ = compile (if files = [] then [ "build.ml" ] else files) inmatch !Elpe.last_built_module with| None -> Lwt.return ()| Some last ->let* last = last inrun_build (last :> Elpe.derivation)))