ligo/src/bin/dune

39 lines
820 B
Plaintext
Raw Normal View History

2019-11-22 00:06:34 +04:00
(library
2019-05-13 00:56:22 +04:00
(name cli)
2019-11-22 00:06:34 +04:00
(libraries
simple-utils
cmdliner
ligo
)
2019-12-07 18:11:33 +04:00
(modules cli cli_helpers version)
2019-11-22 00:06:34 +04:00
(preprocess
2020-01-08 14:54:21 +04:00
(pps ppx_let ppx_blob bisect_ppx --conditional)
2019-11-22 00:06:34 +04:00
)
2020-01-08 14:54:21 +04:00
(preprocessor_deps (file ../../CHANGELOG.md))
2019-11-22 00:06:34 +04:00
(flags (:standard -open Simple_utils))
)
2019-12-07 18:11:33 +04:00
(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}\""))))
2019-11-22 00:06:34 +04:00
(executable
(name runligo)
2019-05-13 00:56:22 +04:00
(public_name ligo)
(libraries
simple-utils
cmdliner
ligo
2019-11-22 00:06:34 +04:00
cli
2019-05-13 00:56:22 +04:00
)
(modules runligo)
2019-05-13 00:56:22 +04:00
(package ligo)
(preprocess
2020-01-08 14:54:21 +04:00
(pps ppx_let ppx_blob bisect_ppx --conditional)
2019-05-13 00:56:22 +04:00
)
(flags (:standard -open Simple_utils))
)