ligo/src/bin/dune
Lesenechal Remi c8339ed2ef first try
2019-12-31 14:23:51 +01:00

38 lines
729 B
Plaintext

(library
(name cli)
(libraries
simple-utils
cmdliner
ligo
)
(modules cli cli_helpers version)
(preprocess
(pps ppx_let bisect_ppx --conditional)
)
(flags (:standard -open Simple_utils))
)
(rule
(targets version.ml)
(action (with-stdout-to
version.ml
(run "sh" "-c"
"printf 'let hash = \"%s\"\nlet commit_date = \"%s\"\nlet job_id = \"%s\"\n' \"$(git rev-parse HEAD)\" \"$(git show --no-patch --format=%ci)\" \"${CI_JOB_ID}\""))))
(executable
(name runligo)
(public_name ligo)
(libraries
simple-utils
cmdliner
ligo
cli
)
(modules runligo)
(package ligo)
(preprocess
(pps ppx_let)
)
(flags (:standard -open Simple_utils))
)