-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the configure infrastructure for paths.ml
Signed-off-by: Andrii Sultanov <[email protected]>
- Loading branch information
1 parent
944942b
commit 7e95056
Showing
6 changed files
with
43 additions
and
34 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
|
||
#exec dune exec --profile=release ./configure.exe conf -- $* >oxenstored.conf | ||
dune exec --profile=release ./configure.exe paths -- $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
let xen_run_dir = ref "/var/run/xen/" | ||
|
||
let xen_run_stored = ref "/var/run/xenstored" | ||
|
||
let xen_log_dir = ref "/var/log/xen/" | ||
|
||
let xen_config_dir = ref "/etc/xen" | ||
|
||
let libexec = ref "/usr/local/lib/xen" | ||
|
||
let args = | ||
[ | ||
("XEN_RUN_DIR", Arg.Set_string xen_run_dir, "") | ||
; ("XEN_RUN_STORED", Arg.Set_string xen_run_stored, "") | ||
; ("XEN_LOG_DIR", Arg.Set_string xen_log_dir, "") | ||
; ("XEN_CONFIG_DIR", Arg.Set_string xen_config_dir, "") | ||
; ("LIBEXEC", Arg.Set_string libexec, "") | ||
] | ||
|
||
let () = | ||
Arg.parse (args |> Arg.align) ignore "" ; | ||
List.iter2 | ||
(fun var (name, _, _) -> | ||
print_endline | ||
(Printf.sprintf {|let %s = "%s"|} (String.lowercase_ascii name) var) | ||
) | ||
[!xen_run_dir; !xen_run_stored; !xen_log_dir; !xen_config_dir; !libexec] | ||
args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters