forked from xapi-project/xapi-storage-script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdune
57 lines (51 loc) · 1.03 KB
/
dune
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
(* -*- tuareg -*- *)
let version =
let ic = open_in "./VERSION" in
let version = input_line ic in
close_in ic;
version
let () = Printf.ksprintf Jbuild_plugin.V1.send {|
(rule
(targets version.ml)
(deps)
(action
(with-stdout-to %%{targets} (echo "let version = \"%s\"\n"))
)
)
(executable
(name main)
(public_name xapi-storage-script)
(flags (:standard -w -39))
(libraries
async_inotify
message-switch-async
message-switch-unix
rpclib
rpclib-async
sexplib
threads
xapi-stdext-date
xapi-storage
xapi-idl
xapi-idl.rrd
xapi-idl.storage
)
(preprocess (pps ppx_deriving_rpc ppx_sexp_conv))
)
(rule
(targets xapi-storage-script.8)
(deps (:x main.exe))
(action
(with-stdout-to %%{targets} (run %%{x} --help=groff))
)
)
(install
(section man)
(files (xapi-storage-script.8 as man8/xapi-storage-script.8))
)
(alias
(name runtest)
(deps (:x main.exe) (source_tree test/volume))
(action (bash "./%%{x} --root=$PWD/test --self-test-only=true"))
)
|} version