ligo/src/bin/dune
2020-01-08 10:54:21 +00:00

39 lines
820 B
Plaintext

(library
(name cli)
(libraries
simple-utils
cmdliner
ligo
)
(modules cli cli_helpers version)
(preprocess
(pps ppx_let ppx_blob bisect_ppx --conditional)
)
(preprocessor_deps (file ../../CHANGELOG.md))
(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 ppx_blob bisect_ppx --conditional)
)
(flags (:standard -open Simple_utils))
)