This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
This example creates a configuration file using a fallback rule.
|
||||
See README.org for details
|
||||
|
||||
By default, config is set:
|
||||
|
||||
$ dune exec ./src/plop.exe
|
||||
Built with support for blah: true
|
||||
Path to blah is: "/path/to/blah"
|
||||
|
||||
Print generated config:
|
||||
|
||||
$ cat _build/default/config.full
|
||||
|
||||
let with_blah = true
|
||||
let blah_path = "/path/to/blah"
|
||||
|
||||
Now, we disable it, and re-run:
|
||||
|
||||
$ echo "let enable_blah = No" > config
|
||||
$ dune exec ./src/plop.exe
|
||||
Built with support for blah: false
|
||||
Path to blah is: "<no support for blah>"
|
||||
$ cat _build/default/config.full
|
||||
|
||||
let with_blah = false
|
||||
let blah_path = "<no support for blah>"
|
||||
Loading…
Add table
Add a link
Reference in a new issue