Hack to get propper dune dependencies for Version.ml
This commit is contained in:
parent
0909650814
commit
15d5f2485d
3
.gitignore
vendored
3
.gitignore
vendored
@ -3,4 +3,5 @@ _build/*
|
|||||||
*~
|
*~
|
||||||
.merlin
|
.merlin
|
||||||
*/.merlin
|
*/.merlin
|
||||||
*.install
|
*.install
|
||||||
|
/Version.ml
|
||||||
|
@ -1 +0,0 @@
|
|||||||
let version = "7445e9c0"
|
|
13
dune
13
dune
@ -41,13 +41,14 @@
|
|||||||
)
|
)
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets vera)
|
(targets Version.gitHEAD)
|
||||||
(deps hd)
|
(deps .gitHEAD)
|
||||||
(action (run "sh" "-c" "if git symbolic-ref HEAD; then ln -s ../../.git/\"$(git symbolic-ref HEAD)\" vera; else ln -s hd vera; fi"))
|
(action (run "sh" "-c" "if git symbolic-ref HEAD; then ln -s ../../.git/\"$(git symbolic-ref HEAD)\" Version.gitHEAD; else ln -s hd Version.gitHEAD; fi"))
|
||||||
)
|
)
|
||||||
|
|
||||||
(rule
|
(rule
|
||||||
(targets verb)
|
(targets Version.ml)
|
||||||
(deps vera)
|
(deps Version.gitHEAD)
|
||||||
(action (run "sh" "-c" "cat vera > verb"))
|
(action (run "sh" "-c" "printf 'let version = \"%s\"'\\\\n \"$(cat Version.gitHEAD)\" > Version.ml"))
|
||||||
|
(mode promote-until-clean)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user