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
|
||||
*.install
|
||||
*.install
|
||||
/Version.ml
|
||||
|
@ -1 +0,0 @@
|
||||
let version = "7445e9c0"
|
13
dune
13
dune
@ -41,13 +41,14 @@
|
||||
)
|
||||
|
||||
(rule
|
||||
(targets vera)
|
||||
(deps hd)
|
||||
(action (run "sh" "-c" "if git symbolic-ref HEAD; then ln -s ../../.git/\"$(git symbolic-ref HEAD)\" vera; else ln -s hd vera; fi"))
|
||||
(targets Version.gitHEAD)
|
||||
(deps .gitHEAD)
|
||||
(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
|
||||
(targets verb)
|
||||
(deps vera)
|
||||
(action (run "sh" "-c" "cat vera > verb"))
|
||||
(targets Version.ml)
|
||||
(deps Version.gitHEAD)
|
||||
(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